File: benchmark_dense_repeat_test.go

package info (click to toggle)
golang-github-gorgonia-tensor 0.9.24-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,696 kB
  • sloc: sh: 18; asm: 18; makefile: 8
file content (14 lines) | stat: -rw-r--r-- 256 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package tensor

import "testing"

func BenchmarkDenseRepeat(b *testing.B) {
	for _, tst := range repeatTests {
		tst := tst
		b.Run(tst.name, func(b *testing.B) {
			for n := 0; n < b.N; n++ {
				tst.tensor.Repeat(tst.axis, tst.repeats...)
			}
		})
	}
}