Commit de30b18
committed
Add a benchmark for PreviousSet and PreviousClear
On an Apple M2 they produces these results:
BenchmarkBitsetOps/NextSet-8 2537938 470.0 ns/op
BenchmarkBitsetOps/NextClear-8 2564336 468.1 ns/op
BenchmarkBitsetOps/PreviousSet-8 19930 59924 ns/op
BenchmarkBitsetOps/PreviousClear-8 19912 61002 ns/op
A future commit should improve upon this.1 parent c77dfc3 commit de30b18
1 file changed
+17
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
133 | 150 | | |
134 | 151 | | |
135 | 152 | | |
| |||
0 commit comments