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

[8_11] optimize performance of as_hexadecimal #334

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

jingkaimori
Copy link
Contributor

Performance

Before

complexityN ns/op op/s err% total benchmark
1 16.13 61,983,083.42 1.1% 0.08 convert unsigned int to hexadecimal string
2 17.66 56,613,212.10 1.6% 0.09 convert unsigned int to hexadecimal string
3 18.61 53,742,458.03 0.4% 0.09 convert unsigned int to hexadecimal string
4 20.91 47,819,863.10 0.6% 0.10 convert unsigned int to hexadecimal string
5 24.17 41,368,070.45 0.4% 0.12 convert unsigned int to hexadecimal string

After

complexityN ns/op op/s err% total benchmark
1 15.82 63,221,389.11 0.4% 0.08 convert unsigned int to hexadecimal string
2 15.76 63,449,120.53 1.6% 0.08 convert unsigned int to hexadecimal string
3 17.98 55,615,898.20 1.0% 0.09 convert unsigned int to hexadecimal string
4 17.53 57,043,784.30 2.8% 0.08 convert unsigned int to hexadecimal string
5 16.19 61,784,470.21 0.4% 0.08 convert unsigned int to hexadecimal string

@da-liii da-liii changed the title optimize performance of as_hexadecimal [8_11] optimize performance of as_hexadecimal Jun 10, 2024
@da-liii da-liii merged commit 62d620e into main Jun 10, 2024
12 checks passed
@da-liii da-liii deleted the jingkaimori/string-algorithm branch June 10, 2024 06:45
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