diff --git a/src/test/scala/com/redis/Bench.scala b/src/test/scala/com/redis/Bench.scala index 666da7ea..3359a4c8 100644 --- a/src/test/scala/com/redis/Bench.scala +++ b/src/test/scala/com/redis/Bench.scala @@ -34,7 +34,7 @@ object Bench { val tasks = (1 to 100) map (i => actors.Futures.future { fn(opsPerClient, "k" + i.toString) }) val results = tasks map (future => future.apply()) val elapsedSeconds = (System.nanoTime - start)/1000000000.0 - val opsPerSec = (opsPerClient * 100 * 2) / elapsedSeconds + val opsPerSec = (opsPerClient * 100) / elapsedSeconds (elapsedSeconds, opsPerSec, results) } }