my-emacs-d/elpa/yasnippet-20160924.2001/snippets/ruby-mode/bench

11 lines
148 B
Plaintext
Raw Normal View History

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