Instantly share code, notes, and snippets.

Embed
What would you like to do?
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