From 21e69ecf9391e72310b00b75fffc6b144ee77cab Mon Sep 17 00:00:00 2001 From: Charles Lowell Date: Wed, 20 Jun 2012 02:20:13 -0500 Subject: [PATCH] make benchmarks take object count as argument --- benchmarks.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/benchmarks.rb b/benchmarks.rb index 6c21ae5..975e4c0 100644 --- a/benchmarks.rb +++ b/benchmarks.rb @@ -1,8 +1,9 @@ -require "v8" -require "Benchmark" +require 'bundler/setup' +require 'v8' +require 'benchmark' TIMES=10 -OBJECTS=100 +OBJECTS = (ARGV.first).to_i || 100 js= <