Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Commit

Permalink
Fixed benchmark scale. It had shown 1000 times greater performance th…
Browse files Browse the repository at this point in the history
…an actual
  • Loading branch information
AlexeyKupershtokh committed Mar 11, 2013
1 parent 8f43443 commit 08d3bb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion perf/local_thr.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ 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)
Expand Down

0 comments on commit 08d3bb3

Please sign in to comment.