my-emacs-d/elpa/yasnippet-20161022.646/snippets/ruby-mode/bench
2016-10-24 08:30:06 +02:00

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