File: popcnt_bench_test.go

package info (click to toggle)
golang-github-roaringbitmap-roaring 0.4.21-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,004 kB
  • sloc: asm: 95; makefile: 71
file content (15 lines) | stat: -rw-r--r-- 202 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package roaring

import "testing"

func BenchmarkPopcount(b *testing.B) {
	b.StopTimer()

	r := getRandomUint64Set(64)

	b.ResetTimer()
	b.StartTimer()
	for i := 0; i < b.N; i++ {
		popcntSlice(r)
	}
}