Skip to content
  • Florian Fischer's avatar
    [EchoSever] implement random computations variants · 964278bc
    Florian Fischer authored
    Now three variants of computation are available:
    
    * fixed (echoserver <port> <computation>:
       This will always consume computation us before sending the echo
       back to the client.
    * random range (echoserver <port> <computation> <computation-max>:
       This will consume a random computation uniformly selected
       from the interval [computation, computation-max] us.
    * random min-max (echoserver <port> <computation> <computation-max> <max-probability>
       This will either consume computation or computation-max us.
       The max computation is randomly chosen with the specified probability.
    
    All random values are generated with a thread_local mt19937 generator
    and uniformly distributed with uniform_{int,real}_distribution.
    964278bc