Created
December 23, 2015 16:48
-
-
Save remore/0f55592ff4a56e2fde69 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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