Sha256: 1ed7e6f40ddd1a7a292dbb16056eb05edd417cb4ab5ab779d512daa4009c474d
Contents?: true
Size: 392 Bytes
Versions: 3
Compression:
Stored size: 392 Bytes
Contents
require 'h8' def timing name s = Time.now yield puts "#{name}\t: #{Time.now - s}" rescue puts "*** #{$!}" raise end def js_context cxt = H8::Context.new cxt[:print] = -> (*args) { puts args.join(' ') } 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
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
h8-0.2.5 | benchmark/tools.rb |
h8-0.2.4 | benchmark/tools.rb |
h8-0.2.3 | benchmark/tools.rb |