These are chat archives for opal/opal

3rd
Nov 2015
Michał Kalbarczyk
@fazibear
Nov 03 2015 14:44
curiosity I did a benchmarks for opal 0.9 JS
Benchmark.bm do |x|
  x.report { 1_000_000.times { `document.location.pathname` } }
  x.report { 1_000_000.times { JS.global.JS[:document].JS[:location].JS[:pathname] } }
end
       user     system      total        real
  1.025000   1.025000   4.100000 (  1.025000)
  0.802000   0.802000   3.208000 (  0.802000)
Elia Schito
@elia
Nov 03 2015 14:49
maybe it needs some warm up time, have you tried switching the order?
Michał Kalbarczyk
@fazibear
Nov 03 2015 14:57
first one is always slower
i think there is no any performance issues to switch to JS :)
Elia Schito
@elia
Nov 03 2015 15:05
yes, that's pretty neat work from @jeremyevans :)