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

chore: add a benchmark comparing lpStringToInt64 to SimpleAtoi #3815

Merged
merged 1 commit into from
Sep 29, 2024
Merged

Conversation

romange
Copy link
Collaborator

@romange romange commented Sep 28, 2024

Seems that lpStringToInt64 is fairly optimized.
On c7g:

BM_LpString2Int/1      27383 ns        27381 ns       204149
BM_LpString2Int/2      24535 ns        24534 ns       227981

so SimpleAtoi has only ~10% improvement.

@romange romange requested a review from chakaz September 28, 2024 06:48
@dranikpg
Copy link
Contributor

So what are the results? 👀

Seems that lpStringToInt64 is fairly optimized.
On c7g:

```
BM_LpString2Int/1      27383 ns        27381 ns       204149
BM_LpString2Int/2      24535 ns        24534 ns       227981
```

so SimpleAtoi has only ~10% improvement.

Signed-off-by: Roman Gershman <[email protected]>
@romange
Copy link
Collaborator Author

romange commented Sep 28, 2024

@dranikpg Updated. Not worth changing.

Copy link
Collaborator

@chakaz chakaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assuming you still want to merge the benchmark, which I see no reason why not to :)

@romange romange merged commit 73002dc into main Sep 29, 2024
12 checks passed
@romange romange deleted the Pr4 branch September 29, 2024 06:04
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.

3 participants