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

Implement DynamicMerger #146

Merged
merged 1 commit into from Sep 15, 2019

Conversation

@k0kubun
Copy link
Owner

commented Sep 15, 2019

string_template's benchmark w/ Hamlit

before

Calculating -------------------------------------
              string    39.969k i/s -    100.000k times in 2.501936s (25.02μs/i)
              hamlit    34.498k i/s -    100.000k times in 2.898699s (28.99μs/i)

Comparison:
              string:     39969.0 i/s
              hamlit:     34498.2 i/s - 1.16x  slower

after

Calculating -------------------------------------
              string    39.740k i/s -    100.000k times in 2.516339s (25.16μs/i)
              hamlit    39.719k i/s -    100.000k times in 2.517673s (25.18μs/i)

Comparison:
              string:     39740.3 i/s
              hamlit:     39719.2 i/s - 1.00x  slower
[before]
Calculating -------------------------------------
              string    39.969k i/s -    100.000k times in 2.501936s (25.02μs/i)
              hamlit    34.498k i/s -    100.000k times in 2.898699s (28.99μs/i)

Comparison:
              string:     39969.0 i/s
              hamlit:     34498.2 i/s - 1.16x  slower

[after]
Calculating -------------------------------------
              string    39.740k i/s -    100.000k times in 2.516339s (25.16μs/i)
              hamlit    39.719k i/s -    100.000k times in 2.517673s (25.18μs/i)

Comparison:
              string:     39740.3 i/s
              hamlit:     39719.2 i/s - 1.00x  slower
@k0kubun k0kubun merged commit 233370d into master Sep 15, 2019
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@k0kubun k0kubun deleted the the-fastest-template-engine branch Sep 15, 2019
@k0kubun

This comment has been minimized.

Copy link
Owner Author

commented Sep 15, 2019

benchmark/etc/string_interpolation.haml

before

Calculating -------------------------------------
         haml v5.1.2    32.401k i/100ms
         faml v0.8.1    58.482k i/100ms
       hamlit v2.9.5    87.706k i/100ms
-------------------------------------------------
         haml v5.1.2    375.259k i/s (0.003ms) -      1.879M
         faml v0.8.1    696.889k i/s (0.001ms) -      3.509M
       hamlit v2.9.5      1.195M i/s (0.001ms) -      6.052M

Comparison:
       hamlit v2.9.5:  1194843.2 i/s (0.001ms)
         faml v0.8.1:   696889.1 i/s (0.001ms) - 1.71x slower
         haml v5.1.2:   375259.1 i/s (0.003ms) - 3.18x slower

after

Calculating -------------------------------------
         haml v5.1.2    33.535k i/100ms
         faml v0.8.1    60.561k i/100ms
      hamlit v2.10.0    93.471k i/100ms
-------------------------------------------------
         haml v5.1.2    378.851k i/s (0.003ms) -      1.878M
         faml v0.8.1    710.606k i/s (0.001ms) -      3.513M
      hamlit v2.10.0      1.307M i/s (0.001ms) -      6.543M

Comparison:
      hamlit v2.10.0:  1307490.2 i/s (0.001ms)
         faml v0.8.1:   710605.9 i/s (0.001ms) - 1.84x slower
         haml v5.1.2:   378850.8 i/s (0.003ms) - 3.45x slower
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.