summaryrefslogtreecommitdiff
path: root/bench
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2009-06-09 10:38:06 +0000
committermurphy <murphy@rubychan.de>2009-06-09 10:38:06 +0000
commit90d4db43872599ba53fa50836542eab5fb8ff42b (patch)
tree9cbd0181c87c6f723e508fc21b365aab80750cab /bench
parent31d3cce3b7a81f988800e2e8aa66b7b85826f348 (diff)
downloadcoderay-90d4db43872599ba53fa50836542eab5fb8ff42b.tar.gz
Benchmark: Actually, the abbreviation for second is s, not sec.
Diffstat (limited to 'bench')
-rw-r--r--bench/bench.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/bench/bench.rb b/bench/bench.rb
index 4d4200a..a270397 100644
--- a/bench/bench.rb
+++ b/bench/bench.rb
@@ -130,7 +130,7 @@ Benchmark.bm(20) do |bm|
time_real = time.real / N
- puts "\t%7.2f KB/sec (%d.%d KB)\t%0.2f KTok/sec" % [((@size / 1024.0) / time_real), @size / 1024, @size % 1024, ((@token_count / 1000.0) / time_real)]
+ puts "\t%7.2f KB/s (%d.%d KB)\t%0.2f KTok/s" % [((@size / 1024.0) / time_real), @size / 1024, @size % 1024, ((@token_count / 1000.0) / time_real)]
puts $o if ARGV.include? '-o'
if compare
@@ -155,7 +155,7 @@ Benchmark.bm(20) do |bm|
end
$file_created << ", test.syntax.#{format}"
end
- puts "\t%7.2f KB/sec" % ((@size / 1024.0) / time.real)
+ puts "\t%7.2f KB/s" % ((@size / 1024.0) / time.real)
end
=begin
@@ -168,7 +168,7 @@ Benchmark.bm(20) do |bm|
end
$file_created << ", test.silvercity.#{format}"
end
- puts "\t%7.2f KB/sec" % ((@size / 1024.0) / time.real)
+ puts "\t%7.2f KB/s" % ((@size / 1024.0) / time.real)
=end
time = bm.report('Pygments') do
Dir.chdir(here) do
@@ -181,7 +181,7 @@ Benchmark.bm(20) do |bm|
end
#$file_created << ", test.silvercity.#{format}"
end
- puts "\t%7.2f KB/sec" % ((@size / 1024.0) / time.real)
+ puts "\t%7.2f KB/s" % ((@size / 1024.0) / time.real)
end
end