11 lines
148 B
Plaintext
11 lines
148 B
Plaintext
# -*- mode: snippet -*-
|
|
# name: bench
|
|
# key: bench
|
|
# --
|
|
require "benchmark"
|
|
|
|
TESTS = ${1:1_000}
|
|
Benchmark.bmbm do |x|
|
|
x.report("${2:var}") {}
|
|
end
|