blob: d76cd58f77a41aa3b0f7170ae62d4844036b0787 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
$LOAD_PATH.unshift('lib')
require 'hashie'
require 'benchmark/ips'
mash = Hashie::Mash.new(test: 'value')
Benchmark.ips do |x|
x.hold!('tmp/mash_benchmark.json')
x.report('before') { mash.test }
x.report('after') { mash.test }
x.compare!
end
|