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

Slower than Try::Tiny?? #10

Open
ap opened this issue Apr 18, 2017 · 1 comment
Open

Slower than Try::Tiny?? #10

ap opened this issue Apr 18, 2017 · 1 comment

Comments

@ap
Copy link
Contributor

ap commented Apr 18, 2017

This appears to be the case even normally – but especially when forcing Try::Tiny to not name its callbacks:
http://blogs.perl.org/users/diab_jerius/2017/04/how-fast-can-you-try.html

I’m not sure how this is possible, but it appears to be the case.

@mamod
Copy link
Owner

mamod commented Apr 21, 2017

@ap sorry for the delay.
have you tested this your self and got the same results?! it's really strange

first run to the tests gave me, these reults

Rate TT TC
TT 118959/s -70%
TC 402390/s 238%

and here a bench with TryCatch

Rate TT TC T
TT 116856/s -70% -93%
TC 398898/s 241% -76%
T 1697620/s 1352% 325%

So I'm not sure what's going on :)

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

2 participants