From 22fcbd97e543f0c5d9ec925f14af13587a4b2e8f Mon Sep 17 00:00:00 2001 From: Valerian Date: Fri, 3 May 2013 23:47:56 +0300 Subject: [PATCH] Ops done should not be multiplied by 2 --- src/test/scala/com/redis/Bench.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } }