Golang, Software Performance, Concurrent Programming, Cache Coherence, Database Development.
b.RunParallel(func(pb *testing.PB) { threadMut.Lock() id := threadId threadId++ threadMut.Unlock() for pb.Next() { lock.Get(id).Lock() lock.Get(id).Unlock() } }) } The results without the cpu.CacheLinePad: goos: linux goarch: amd64 pkg: git.sr.ht/~chiefnoah/mehgo/pkg/locks cpu: AMD Ryzen 9 7900X3D