Revision: 3856 http://trac.macosforge.org/projects/ruby/changeset/3856 Author: ernest.prabhakar@gmail.com Date: 2010-03-24 13:38:09 -0700 (Wed, 24 Mar 2010) Log Message: ----------- Tab separated gcd/benchmarks.rb Modified Paths: -------------- MacRuby/trunk/sample-macruby/Scripts/gcd/benchmarks.rb Modified: MacRuby/trunk/sample-macruby/Scripts/gcd/benchmarks.rb =================================================================== --- MacRuby/trunk/sample-macruby/Scripts/gcd/benchmarks.rb 2010-03-24 20:38:08 UTC (rev 3855) +++ MacRuby/trunk/sample-macruby/Scripts/gcd/benchmarks.rb 2010-03-24 20:38:09 UTC (rev 3856) @@ -20,8 +20,9 @@ METHODS = %w(iter p_iter apply concur serial nqueue njobs) puts "GCD BENCHMARKS" -puts "Folds,\t#{$folds},\tMaxTasks,\t#{$max_tasks},\tReps,\t#{$reps}" -puts "TYPE,\tTASKS,\t'TIME µsec'" +puts "MaxTasks\t#{$max_tasks}\tFolds\t#{$folds}\tReps\t#{$reps}" +#puts METHODS +puts "METHOD\tTASKS\tTIME µsec" def work_function(i) x = 1.0+i*i @@ -73,7 +74,7 @@ def bench(method, count=1) proc = Proc.new { send(method.to_sym, count) } t = Benchmark.repeat($reps, "%6s" % method, &proc) - puts "#{method},\t#{count},\t%6.2f" % (t.real*1e6/count) + puts "#{method}\t#{count}\t%6.2f" % (t.real*1e6/count) end n = 1
participants (1)
-
source_changes@macosforge.org