I hereby claim:
- I am amckinnell on github.
- I am alistairm (https://keybase.io/alistairm) on keybase.
- I have a public key ASByx3NqEbAPNxvplXVRYuhBwzpmpGwwxL-ZrXRXmDyvVQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
require "benchmark/ips" | |
Benchmark.ips do |x| | |
x.report("vanilla: ") { lookup_raw("vendors") } | |
x.report("memoized: ") { lookup_memoized("vendors") } | |
x.compare! | |
end | |
def lookup_raw(type) |