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

test: adding benchmark #7

Merged
merged 1 commit into from
Mar 21, 2024
Merged

Conversation

adamdecaf
Copy link
Contributor

@adamdecaf adamdecaf commented Mar 11, 2024

goos: darwin
goarch: amd64
pkg: github.com/sakeven/RbTree
cpu: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
BenchmarkRBTree/insert-16         	 1855537	       801.6 ns/op	      64 B/op	       1 allocs/op
BenchmarkRBTree/iterate-16        	15111433	       124.0 ns/op	       0 B/op	       0 allocs/op
BenchmarkRBTree/delete-16         	73423563	        24.15 ns/op	       0 B/op	       0 allocs/op

rbtree_bench_test.go Outdated Show resolved Hide resolved
rbtree_bench_test.go Outdated Show resolved Hide resolved
@adamdecaf
Copy link
Contributor Author

I've updated the benchmarks and they're giving more accurate results now.

rbtree_bench_test.go Outdated Show resolved Hide resolved
goos: darwin
goarch: amd64
pkg: github.com/sakeven/RbTree
cpu: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
BenchmarkRBTree/insert-16         	 1855537	       801.6 ns/op	      64 B/op	       1 allocs/op
BenchmarkRBTree/iterate-16        	15111433	       124.0 ns/op	       0 B/op	       0 allocs/op
BenchmarkRBTree/delete-16         	73423563	        24.15 ns/op	       0 B/op	       0 allocs/op
@sakeven sakeven merged commit 9899538 into sakeven:master Mar 21, 2024
5 checks passed
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.

2 participants