Created
July 25, 2018 21:52
-
-
Save tenderlove/5b534b11b62dc03c544e0fc5bc0c7a57 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/Users/aaron/.rbenv/versions/ruby-trunk/bin/ruby | |
require 'benchmark/ips' | |
require './lib/track_obj' | |
if ARGV[0] == "--trace" | |
tp = TrackObj.make_tp | |
tp.enable | |
end | |
Benchmark.ips do |x| | |
x.report "allocation speed" do | |
Object.new | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment