Skip to content
Snippets Groups Projects
  • Iustin Pop's avatar
    Improve the rpc-test program · b9b4f1bf
    Iustin Pop authored
    
    This is an ugly patch, sorry. It adds the following features to
    rpc-test, to help with (stress) testing the Haskell RPC client:
    
    - customisable repeat count for the RPCs
    - customisable parallelisation factor
    - options to show timing stats and other information
    - capability to execute any RPCs already defined, as opposed to having
      the RPC hardcoded; this requires a data file (defaulting to
      "rpc.json") that has the serialised RPC call
    
    The polymorphism/way the RPC library is implemented requires us to
    have some duplicate code (operating on different types); I wasn't able
    to found a way to make this more abstract.
    
    Signed-off-by: default avatarIustin Pop <iustin@google.com>
    Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
    b9b4f1bf