Skip to content

Fast blank is slower than Slow blank on Truffleruby #2439

Open
@gogainda

Description

@gogainda

https://github.com/SamSaffron/fast_blank

================== Test String Length: 0 ==================
Warming up --------------------------------------
          Fast Blank    93.707k i/100ms
  Fast ActiveSupport   510.726k i/100ms
          Slow Blank    76.211k i/100ms
      New Slow Blank    22.244M i/100ms
Calculating -------------------------------------
          Fast Blank      5.361M (± 5.0%) i/s -     26.706M in   4.997583s
  Fast ActiveSupport      5.451M (± 2.9%) i/s -     27.579M in   5.063809s
          Slow Blank      1.297M (±66.5%) i/s -      3.125M in   5.072733s
      New Slow Blank    220.498M (± 8.1%) i/s -      1.090B in   5.007588s

Comparison:
      New Slow Blank: 220497717.1 i/s
  Fast ActiveSupport:  5451195.9 i/s - 40.45x  (± 0.00) slower
          Fast Blank:  5360771.1 i/s - 41.13x  (± 0.00) slower
          Slow Blank:  1296628.6 i/s - 170.05x  (± 0.00) slower


================== Test String Length: 6 ==================
Warming up --------------------------------------
          Fast Blank   168.425k i/100ms
  Fast ActiveSupport   183.225k i/100ms
          Slow Blank    78.492k i/100ms
      New Slow Blank     2.231M i/100ms
Calculating -------------------------------------
          Fast Blank      1.866M (± 3.8%) i/s -      9.432M in   5.063119s
  Fast ActiveSupport      1.847M (± 3.5%) i/s -      9.344M in   5.066771s
          Slow Blank      1.283M (±66.5%) i/s -      3.061M in   5.141647s
      New Slow Blank     20.021M (±12.9%) i/s -     98.156M in   5.011524s

Comparison:
      New Slow Blank: 20021393.6 i/s
          Fast Blank:  1865661.2 i/s - 10.73x  (± 0.00) slower
  Fast ActiveSupport:  1846637.6 i/s - 10.84x  (± 0.00) slower
          Slow Blank:  1282619.8 i/s - 15.61x  (± 0.00) slower


================== Test String Length: 14 ==================
Warming up --------------------------------------
          Fast Blank   383.840k i/100ms
  Fast ActiveSupport   396.259k i/100ms
          Slow Blank     2.476M i/100ms
      New Slow Blank    83.883k i/100ms
Calculating -------------------------------------
          Fast Blank      3.711M (± 6.8%) i/s -     18.808M in   5.097805s
  Fast ActiveSupport      3.893M (± 4.5%) i/s -     19.813M in   5.100463s
          Slow Blank     24.881M (± 5.0%) i/s -    126.293M in   5.090137s
      New Slow Blank      1.221M (±68.5%) i/s -      3.188M in   5.196091s

Comparison:
          Slow Blank: 24880544.8 i/s
  Fast ActiveSupport:  3892783.7 i/s - 6.39x  (± 0.00) slower
          Fast Blank:  3711304.1 i/s - 6.70x  (± 0.00) slower
      New Slow Blank:  1220939.0 i/s - 20.38x  (± 0.00) slower


================== Test String Length: 24 ==================
Warming up --------------------------------------
          Fast Blank   127.566k i/100ms
  Fast ActiveSupport   211.474k i/100ms
          Slow Blank     2.129M i/100ms
      New Slow Blank    55.351k i/100ms
Calculating -------------------------------------
          Fast Blank      2.145M (± 8.9%) i/s -     10.588M in   5.000647s
  Fast ActiveSupport      2.077M (± 6.3%) i/s -     10.362M in   5.010825s
          Slow Blank     19.853M (± 5.5%) i/s -    100.044M in   5.057535s
      New Slow Blank      1.337M (±61.4%) i/s -      3.100M in   5.086929s

Comparison:
          Slow Blank: 19852906.7 i/s
          Fast Blank:  2144579.7 i/s - 9.26x  (± 0.00) slower
  Fast ActiveSupport:  2076706.4 i/s - 9.56x  (± 0.00) slower
      New Slow Blank:  1337390.2 i/s - 14.84x  (± 0.00) slower


================== Test String Length: 136 ==================
Warming up --------------------------------------
          Fast Blank    68.189k i/100ms
  Fast ActiveSupport   111.426k i/100ms
          Slow Blank     1.927M i/100ms
      New Slow Blank    72.075k i/100ms
Calculating -------------------------------------
          Fast Blank      1.280M (± 8.8%) i/s -      6.342M in   5.019817s
  Fast ActiveSupport      1.113M (± 3.3%) i/s -      5.571M in   5.011350s
          Slow Blank     19.025M (± 2.4%) i/s -     96.352M in   5.067432s
      New Slow Blank      1.098M (±59.3%) i/s -      3.027M in   5.149704s

Comparison:
          Slow Blank: 19024883.4 i/s
          Fast Blank:  1279946.1 i/s - 14.86x  (± 0.00) slower
  Fast ActiveSupport:  1112982.8 i/s - 17.09x  (± 0.00) slower
      New Slow Blank:  1098161.1 i/s - 17.32x  (± 0.00) slower

@SamSaffron

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions