Skip to content

Instantly share code, notes, and snippets.

@anicholson
Created January 16, 2018 04:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anicholson/674ec959730ca71f94f46d49968c25ad to your computer and use it in GitHub Desktop.
Save anicholson/674ec959730ca71f94f46d49968c25ad to your computer and use it in GitHub Desktop.
require "benchmark"
Benchmark.bm do |x|
(1..10).each do |i|
x.report "ENV[PATH]: in a block" do
# i.times { C.getenv("PATH") }
i.times { 1 * i }
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment