Thanks to visit codestin.com
Credit goes to github.com

Skip to content

50% of regex_v8 benchmark time is 2 regexes #388

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

Open
dg-pb opened this issue Apr 25, 2025 · 0 comments
Open

50% of regex_v8 benchmark time is 2 regexes #388

dg-pb opened this issue Apr 25, 2025 · 0 comments

Comments

@dg-pb
Copy link

dg-pb commented Apr 25, 2025

These 2 lines in block1:

        regexs[17].sub(r'', strings[2], count=subcount[17])

        # This prints a unicode escape where the V8 version prints the
        # unicode character.
        regexs[17].sub(r'', strings[3], count=subcount[17])

take 140 ms to run

while full benchmark takes 300 ms.

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

No branches or pull requests

1 participant