Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
Yiling-J committed Oct 2, 2024
1 parent feb9970 commit 7882f1b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions seqlock/seq_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,6 @@ func writer(node *Node[int, int], num_iterations int, s *atomic.Uint32, total ui
for s.Load() != total {
node.Lock()
node.SetValue(1)
node.SetValue(2)
node.SetValue(3)
node.SetValue(0)
node.Unlock()
writes++
Expand All @@ -129,7 +127,7 @@ func HammerRWMutex(numReaders, num_iterations int) {
func TestNode_Seqlock(t *testing.T) {
for _, p := range []int{4, 8, 16, 32, 64} {
t.Run(fmt.Sprintf("parallel %d", p), func(t *testing.T) {
HammerRWMutex(p, 1000000)
HammerRWMutex(p, 5000000)
})
}
}

0 comments on commit 7882f1b

Please sign in to comment.