Permalink
Browse files

Merge pull request #190 from AlexeyKupershtokh/perm-fix

Benchmark fix
  • Loading branch information...
2 parents aa5de36 + 67c9082 commit a9d738d8212834c054a9b6f63a37e9345dcc2e8c @ronkorving ronkorving committed Mar 12, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 perf/local_thr.js
View
@@ -25,13 +25,13 @@ sub.on('message', function (data) {
function finish(){
var endtime = process.hrtime(timer)
var millis = (endtime[0]*1000) + (endtime[1]/1000000)
- var throughput = message_count / (millis/1000000)
+ var throughput = message_count / (millis / 1000)
var megabits = (throughput * message_size * 8) / 1000000
console.log('message size: %d [B]', message_size)
console.log('message count: %d', message_count)
console.log('mean throughput: %d [msg/s]', throughput.toFixed(0))
- console.log('mean throughput: %d [Mb/s]', megabits.toFixed(0))
+ console.log('mean throughput: %d [Mbit/s]', megabits.toFixed(0))
console.log('overall time: %d secs and %d nanoseconds', endtime[0], endtime[1])
sub.close()
}

0 comments on commit a9d738d

Please sign in to comment.