From 3f311f4524ca52b4dab1f5ac9c60c293d5a92403 Mon Sep 17 00:00:00 2001 From: Chris Peyer Date: Mon, 1 Nov 2010 10:19:51 -0700 Subject: [PATCH] Bug 591908: Remove Math.floor from microbenchmark iterations/sec calculation (r=fklockii) --- test/performance/asmicro/driver.as | 4 ++-- test/performance/jsmicro/driver.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/performance/asmicro/driver.as b/test/performance/asmicro/driver.as index 920b31a9..e031bb21 100644 --- a/test/performance/asmicro/driver.as +++ b/test/performance/asmicro/driver.as @@ -49,7 +49,7 @@ function TEST(run:Function, tag:String) { run(); } print('name ' + tag); - print('metric iterations/second ' + Math.floor(iterations/((now-then)/1000.0))); + print('metric iterations/second ' + iterations/((now-then)/1000.0)); } // Run the function 'init' and then the function 'run', and accumulate @@ -70,5 +70,5 @@ function TEST3(init:Function, run:Function, tag:String) { time += (now - then); } print('name ' + tag); - print('metric iterations/second ' + Math.floor(iterations/((time)/1000.0))); + print('metric iterations/second ' + iterations/((time)/1000.0)); } diff --git a/test/performance/jsmicro/driver.js b/test/performance/jsmicro/driver.js index f7019207..a82a6179 100644 --- a/test/performance/jsmicro/driver.js +++ b/test/performance/jsmicro/driver.js @@ -49,7 +49,7 @@ function TEST(run, tag) { run(); } print('name ' + tag); - print('metric iterations/second ' + Math.floor(iterations/((now-then)/1000.0))); + print('metric iterations/second ' + iterations/((now-then)/1000.0)); } // Run the function 'init' and then the function 'run', and accumulate @@ -70,5 +70,5 @@ function TEST3(init, run, tag) { time += (now - then); } print('name ' + tag); - print('metric iterations/second ' + Math.floor(iterations/((time)/1000.0))); + print('metric iterations/second ' + iterations/((time)/1000.0)); } -- 2.11.4.GIT