summaryrefslogtreecommitdiff
path: root/bench
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2010-04-15 01:36:28 +0000
committermurphy <murphy@rubychan.de>2010-04-15 01:36:28 +0000
commit8b22841f80adce856445d1998098511d829f2438 (patch)
treeeb37bcd46529971781ca6b81f18c5b038ec86485 /bench
parent286a3c6d71fcb3d59820833c022d1af5e6e03b0a (diff)
downloadcoderay-8b22841f80adce856445d1998098511d829f2438.tar.gz
Fixed benchmarks.
Diffstat (limited to 'bench')
-rw-r--r--bench/bench.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/bench/bench.rb b/bench/bench.rb
index c658a85..a7caac2 100644
--- a/bench/bench.rb
+++ b/bench/bench.rb
@@ -60,10 +60,6 @@ end
n = ARGV.find { |a| a[/^N/] }
N = if n then n[/\d+/].to_i else 1 end
-o = ARGV.find { |a| a[/^O/] }
-Offset = if o then o[/\d+/].to_i else 1 end
-b = ARGV.find { |a| a[/^B/] }
-BoldEvery = if b then b[/\d+/].to_i else 10 end
$filename = ARGV.include?('strange') ? 'strange' : 'example'
(compare ? 1 : 5).times do
@@ -85,9 +81,6 @@ Benchmark.bm(20) do |bm|
time = bm.report('CodeRay') do
options = {
:tab_width => 2,
- :line_numbers => :inline,
- :line_numbers_offset => Offset,
- :bold_every => BoldEvery,
:wrap => :page,
:css => $style ? :style : :class,
}