visionmedia/axon — pull request #71 by AlexeyKupershtokh (2012-11-06 12:02:35+00:00)
Title: Benchmark bug

Sometimes under heavy load (I'm currently testing axon benchmark on zmq :)) packets come in in large chunks.
So if we have this situation:
1) receive 1000 packets in 0.1s
2) receive 1000 packets in 1s
then avg would be `avg(1000/0.1, 1000/1) = (1000/0.1 + 1000/1) / 2 = 5500`;
whereas it sould be
`(1000 + 1000) / (0.1 + 1) = 1818`;

Please calculate it as `avg = n / time_in_secs`