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 map preallocation benchmarks #23

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

scop
Copy link
Contributor

@scop scop commented Oct 23, 2021

Results from system in front of me:

BenchmarkMap/Size10NoPreallocate-4  	 1954923	       603.7 ns/op	     484 B/op	       3 allocs/op
BenchmarkMap/Size10Preallocate-4    	 2951250	       393.8 ns/op	     340 B/op	       2 allocs/op
BenchmarkMap/Size200NoPreallocate-4 	   71530	     15337 ns/op	   11270 B/op	      25 allocs/op
BenchmarkMap/Size200Preallocate-4   	  126673	      8216 ns/op	    5719 B/op	       8 allocs/op

@scop scop mentioned this pull request Oct 23, 2021
@alexkohler alexkohler merged commit deab4f5 into alexkohler:master Apr 11, 2024
@scop scop deleted the map-benchmarks branch April 11, 2024 20:57
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.

None yet

2 participants