Skip to content

Instantly share code, notes, and snippets.

@remore
Created December 23, 2015 16:48
Show Gist options
  • Save remore/0f55592ff4a56e2fde69 to your computer and use it in GitHub Desktop.
Save remore/0f55592ff4a56e2fde69 to your computer and use it in GitHub Desktop.
require 'benchmark/ips'
Benchmark.ips do |x|
command = "bundle version"
yomikomu = "export RUBYOPT='-ryomikomu' && export YOMIKOMU_AUTO_COMPILE='true'"
yomikomanai = "export RUBYOPT='' && export YOMIKOMU_AUTO_COMPILE='false'"
x.report("yomikomanai") { p `#{yomikomanai} && #{command}` }
x.report("yomikomu(fs)") { p `#{yomikomu} && export YOMIKOMU_STORAGE='fs' && #{command}` }
x.compare!
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment