Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (13 sloc) 262 Bytes
$: << 'lib'
require 'bundler'
Bundler.setup
require 'schemer'
require 'benchmark'
lexer = Schemer::Lexer.new
n = 100
text = File.read(File.expand_path('../examples/bintree.scm'))
Benchmark.bm do |x|
x.report do
n.times { lexer.parse text }
end
end