dotfiles/.emacs.d/snippets/ruby-mode/bench

11 lines
148 B
Plaintext
Raw Normal View History

2017-12-21 17:29:29 +01:00
# -*- mode: snippet -*-
# name: bench
# key: bench
# --
require "benchmark"
TESTS = ${1:1_000}
Benchmark.bmbm do |x|
x.report("${2:var}") {}
end