heistp / irtt

Isochronous Round-Trip Tester
GNU General Public License v2.0
190 stars 23 forks source link

Add `irtt report` command #15

Open mlouielu opened 6 years ago

mlouielu commented 6 years ago

This make irtt can reproduce the result and display on the screen from output json file

$ irtt report output.json

                        Min    Mean  Median     Max  Stddev
                        ---    ----  ------     ---  ------
                RTT   1.5ms  2.02ms  1.99ms  5.59ms   238µs
         send delay  -1.28s  -1.28s  -1.28s  -1.27s   858µs
      receive delay   1.28s   1.28s   1.28s   1.28s   831µs

      IPDV (jitter)   201ns   175µs  69.7µs  3.57ms   287µs
          send IPDV    25ns   142µs  55.4µs  1.55ms   219µs
       receive IPDV      0s  47.4µs  23.1µs  3.49ms   163µs

     send call time  7.35µs  41.2µs          91.6µs  12.9µs
        timer error     7ns  16.7µs           189µs  22.4µs
  server proc. time  7.56µs  21.9µs            55µs  3.38µs

                duration: 10s (wait 16.76ms)
   packets sent/received: 983/983 (0.00% loss)
 server packets received: 983/983 (0.00%/0.00% loss up/down)
     bytes sent/received: 169076/169076
       send/receive rate: 135.4 Kbps / 135.4 Kbps
           packet length: 172 bytes
             timer stats: 17/1000 (1.70%) missed, 0.17% error
heistp commented 5 years ago

Hi, thanks for your pull request! I can see that I should have some things cleaner in my code so that this would have been easier to implement. I'll do some refactoring as a result, but first, I have some questions/requests for changes to the pull request:

In case you don't get a chance to make these changes, I've added the report command to the plans for version 0.9.2, but have some other work to do for 0.9.1 before I'll get to it. :)