forked from mirror/abool
Remove useless parts in benchmarks
This commit is contained in:
parent
78e36140ca
commit
f861b8e1c3
|
@ -269,7 +269,6 @@ func BenchmarkMutexCAS(b *testing.B) {
|
||||||
}
|
}
|
||||||
m.Unlock()
|
m.Unlock()
|
||||||
}
|
}
|
||||||
b.StopTimer()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkAtomicBoolCAS(b *testing.B) {
|
func BenchmarkAtomicBoolCAS(b *testing.B) {
|
||||||
|
@ -280,7 +279,7 @@ func BenchmarkAtomicBoolCAS(b *testing.B) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Benchmark toggle boolean value
|
// Benchmark toggle
|
||||||
|
|
||||||
func BenchmarkMutexToggle(b *testing.B) {
|
func BenchmarkMutexToggle(b *testing.B) {
|
||||||
var m sync.RWMutex
|
var m sync.RWMutex
|
||||||
|
@ -291,7 +290,6 @@ func BenchmarkMutexToggle(b *testing.B) {
|
||||||
v = !v
|
v = !v
|
||||||
m.Unlock()
|
m.Unlock()
|
||||||
}
|
}
|
||||||
b.StopTimer()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkAtomicBoolToggle(b *testing.B) {
|
func BenchmarkAtomicBoolToggle(b *testing.B) {
|
||||||
|
|
Loading…
Reference in New Issue