Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add benchmarks #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

add benchmarks #1

wants to merge 1 commit into from

Conversation

ebuckley
Copy link

@ebuckley ebuckley commented Feb 6, 2023

I wanted to explore this repo a bit by writing a benchmark test.

IS the Benchmark1point6mill/1.6_million_locks_unlocks_(map_version)-16 implementation representative of the current way we do locking? it looks like it is a bit faster in the naive test of making a map of locks with 1.6 million entries.

goos: linux
goarch: amd64
pkg: github.com/starboard-nz/lockunique
cpu: 12th Gen Intel(R) Core(TM) i7-1260P
Benchmark1point6mill/1.6_million_locks-16         	
1000000000	         0.6862 ns/op
Benchmark1point6mill/1.6_million_locks_unlocks_(map_version)-16         	1000000000	         0.3093 ns/op
PASS
ok  	github.com/starboard-nz/lockunique	44.513s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant