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 "json" | |
require "benchmark" | |
class Measure | |
def self.run(&block) | |
no_gc = (ARGV[0] == "--no-gc") | |
if no_gc | |
GC.disable | |
else | |
# collect memory allocated during library loading # and our own code before the measurement |
NewerOlder