benchmark/tools.rb in h8-0.4.8 vs benchmark/tools.rb in h8-0.4.10

- old
+ new

@@ -1,6 +1,6 @@ -require 'h8' +# require 'h8' def timing name, repetitions = 1, scale = 1 s = Time.now repetitions.times { yield } t = Time.now - s @@ -18,16 +18,5 @@ def log *args puts args.join(' ') end end -def js_context - cxt = H8::Context.new - cxt[:print] = -> (*args) { puts args.join(' ') } - cxt[:console] = Console - cxt -end - -def coffee script_file_name - @base ||= File.dirname(File.expand_path(__FILE__)) - H8::Coffee.compile open("#{@base}/#{script_file_name}.coffee").read -end