aboutsummaryrefslogtreecommitdiff
path: root/bench_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'bench_test.go')
-rw-r--r--bench_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/bench_test.go b/bench_test.go
index 08faa96..da2bf97 100644
--- a/bench_test.go
+++ b/bench_test.go
@@ -199,9 +199,9 @@ func BenchmarkThunderingHerdCondVar(b *testing.B) {
func BenchmarkThunderingHerd(b *testing.B) {
for i := 0; i < b.N; i++ {
- done := NewVar(false)
- tokens := NewVar(0)
- pending := NewVar(0)
+ done := NewBuiltinEqVar(false)
+ tokens := NewBuiltinEqVar(0)
+ pending := NewBuiltinEqVar(0)
for range iter.N(1000) {
Atomically(VoidOperation(func(tx *Tx) {
tx.Set(pending, tx.Get(pending).(int)+1)