diff options
author | murphy <murphy@rubychan.de> | 2006-10-18 08:33:33 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2006-10-18 08:33:33 +0000 |
commit | 4d7ce5f7037580a127ae26d36f49ac5cdf49000d (patch) | |
tree | 5301411f9d019e2fc58858383f941963feaa60de /bench | |
parent | 2c0a26c2f541fdd74d7af2d814c91d799121f761 (diff) | |
download | coderay-4d7ce5f7037580a127ae26d36f49ac5cdf49000d.tar.gz |
Fixed functional test.
Fixed Ruby scanner (/= was scanned as regexp!)
Made bench.rb run from any folder.
Made scanner test diff function work via EDITOR instead of gvimdiff.
Diffstat (limited to 'bench')
-rw-r--r-- | bench/bench.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bench/bench.rb b/bench/bench.rb index a60d5eb..c34c738 100644 --- a/bench/bench.rb +++ b/bench/bench.rb @@ -1,7 +1,12 @@ # The most ugly test script I've ever written! # Shame on me! +require 'pathname' require 'profile' if ARGV.include? '-p' + +MYDIR = File.dirname(__FILE__) +LIBDIR = Pathname.new(MYDIR).join('..', 'lib').cleanpath +$LOAD_PATH.unshift MYDIR, LIBDIR require 'coderay' @size = ARGV.fetch(2, 100).to_i * 2**10 # 2**10 = 1 Ki |