diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/stm.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/stm.go b/tests/stm.go index 816cdec..ab05d5c 100644 --- a/tests/stm.go +++ b/tests/stm.go @@ -83,10 +83,10 @@ func BenchmarkStdlibValueStore(b *testing.B) { } } -func BenchmarkAtomicGet(b *testing.B) { +func BenchmarkDeref(b *testing.B) { x := NewVar(0) for i := 0; i < b.N; i++ { - AtomicGet(x) + Deref(x) } } @@ -162,7 +162,7 @@ func BenchmarkReadVarSTM(b *testing.B) { x := NewVar(0) for i := 0; i < 1000; i++ { go func() { - AtomicGet(x) + Deref(x) wg.Done() }() } @@ -236,7 +236,7 @@ func Example() { v = n.Get(tx) })) // or: - v = AtomicGet(n) + v = Deref(n) _ = v // write to a variable |