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

stringmap: optimize memory layout #12

Merged
merged 1 commit into from
Aug 30, 2024
Merged

stringmap: optimize memory layout #12

merged 1 commit into from
Aug 30, 2024

Conversation

zhangyunhao116
Copy link
Owner

name                                           old alloc/op   new alloc/op   delta
Int64/Store/skipmap-16                            96.0B ± 0%     96.0B ± 0%     ~     (all equal)
Int64/Load50Hits/skipmap-16                       0.00B          0.00B          ~     (all equal)
Int64/30Store70Load/skipmap-16                    28.3B ± 2%     28.3B ± 2%     ~     (p=1.000 n=20+20)
Int64/1Delete9Store90Load/skipmap-16              8.00B ± 0%     8.00B ± 0%     ~     (all equal)
Int64/1Range9Delete90Store900Load/skipmap-16      8.00B ± 0%     8.00B ± 0%     ~     (all equal)
String/Store/skipmap-16                            128B ± 0%      112B ± 0%  -12.50%  (p=0.000 n=20+20)
String/Load50Hits/skipmap-16                      15.0B ± 0%     15.0B ± 0%     ~     (all equal)
String/30Store70Load/skipmap-16                   49.0B ± 0%     44.0B ± 0%  -10.20%  (p=0.000 n=19+20)
String/1Delete9Store90Load/skipmap-16             25.0B ± 0%     24.0B ± 0%   -4.00%  (p=0.000 n=17+20)
String/1Range9Delete90Store900Load/skipmap-16     25.0B ± 0%     24.0B ± 0%   -4.00%  (p=0.000 n=16+20)

@zhangyunhao116 zhangyunhao116 force-pushed the perf/strmap branch 3 times, most recently from efb9444 to 9a99809 Compare August 30, 2024 17:44
name                                           old alloc/op   new alloc/op   delta
Int64/Store/skipmap-16                            96.0B ± 0%     96.0B ± 0%     ~     (all equal)
Int64/Load50Hits/skipmap-16                       0.00B          0.00B          ~     (all equal)
Int64/30Store70Load/skipmap-16                    28.3B ± 2%     28.3B ± 2%     ~     (p=1.000 n=20+20)
Int64/1Delete9Store90Load/skipmap-16              8.00B ± 0%     8.00B ± 0%     ~     (all equal)
Int64/1Range9Delete90Store900Load/skipmap-16      8.00B ± 0%     8.00B ± 0%     ~     (all equal)
String/Store/skipmap-16                            128B ± 0%      112B ± 0%  -12.50%  (p=0.000 n=20+20)
String/Load50Hits/skipmap-16                      15.0B ± 0%     15.0B ± 0%     ~     (all equal)
String/30Store70Load/skipmap-16                   49.0B ± 0%     44.0B ± 0%  -10.20%  (p=0.000 n=19+20)
String/1Delete9Store90Load/skipmap-16             25.0B ± 0%     24.0B ± 0%   -4.00%  (p=0.000 n=17+20)
String/1Range9Delete90Store900Load/skipmap-16     25.0B ± 0%     24.0B ± 0%   -4.00%  (p=0.000 n=16+20)
@zhangyunhao116 zhangyunhao116 merged commit 81e3d4f into master Aug 30, 2024
18 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.

1 participant