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

Update the slow methods to match ActiveSupport’s current implementation #10

Merged
merged 1 commit into from Aug 3, 2015

Conversation

tjschuck
Copy link
Contributor

@tjschuck tjschuck commented Aug 2, 2015

ActiveSupport's String#blank? has gone through some changes -- this updates the test and benchmark comparison methods to match its current implementation.

Particularly notable is that it has been made more performant, via rails/rails#12976 and rails/rails#13519. fast_blank still handily beats it, but it's less of a landslide.

Before:

Fast Blank (Active Support)  136    :   0.130000   0.000000   0.130000 (  0.130488)
Slow Blank 136    :                     1.060000   0.080000   1.140000 (  1.151207)

After:

Fast Blank (Active Support)  136    :   0.140000   0.000000   0.140000 (  0.135160)
Slow Blank 136    :                     0.560000   0.000000   0.560000 (  0.558274)

@SamSaffron
Copy link
Owner

cool we should also update the readme to clarify new perf numbers.

SamSaffron added a commit that referenced this pull request Aug 3, 2015
Update the slow methods to match ActiveSupport’s current implementation
@SamSaffron SamSaffron merged commit 535f566 into SamSaffron:master Aug 3, 2015
@tjschuck tjschuck mentioned this pull request Aug 3, 2015
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.

None yet

2 participants