Sha256: 02555cc8b992d08c2c08dc158a555116e110173d5f4a7d1fbea595614efe5b83

Contents?: true

Size: 652 Bytes

Versions: 1

Compression:

Stored size: 652 Bytes

Contents

# It verifies that optimization for Partial Functions with only one guard actually works.

> bundle exec rake perf:fear:guard:and1_vs_new
ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [arm64-darwin23]
Warming up --------------------------------------
           Guard.new   571.139B i/100ms
          Guard.and1     1.884T i/100ms
Calculating -------------------------------------
           Guard.new      2.927Q (±10.3%) i/s -     14.393Q in   4.993407s
          Guard.and1     32.583Q (± 2.2%) i/s -    162.090Q in   4.977493s

Comparison:
          Guard.and1: 32583184202679384.0 i/s
           Guard.new: 2927179441726049.0 i/s - 11.13x  slower

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fear-3.0.0 benchmarks/fear_gaurd_and1_vs_new.txt