Klimi's new dotfiles with stow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
204 B

4 years ago
  1. # -*- mode: snippet -*-
  2. # name: parallel_benchmark
  3. # key: parbench
  4. # contributor : @kostya-sh
  5. # --
  6. func Benchmark$1(b *testing.B) {
  7. b.RunParallel(func(pb *testing.PB) {
  8. for pb.Next() {
  9. $0
  10. }
  11. })
  12. }