Sha256: 4ce0fcf3fa31d9e25dcc09b327bb4c493f08c17a77f3c724f6dd9c86645756c0

Contents?: true

Size: 585 Bytes

Versions: 5

Compression:

Stored size: 585 Bytes

Contents

# It verifies that optimization for Partial Functions with two guards actually works.

> bundle exec rake perf:fear:guard:and2_vs_guard_and_guard
Warming up --------------------------------------
                and2   224.836k i/100ms
           Guard#and   211.833k i/100ms
Calculating -------------------------------------
                and2    224.457B (± 3.8%) i/s -    651.564B
           Guard#and    211.486B (± 3.7%) i/s -    667.936B

Comparison:
                and2: 224457051906.8 i/s
           Guard#and: 211485786834.4 i/s - same-ish: difference falls within error

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fear-2.0.1 benchmarks/fear_gaurd_and2_vs_and.txt
fear-2.0.0 benchmarks/fear_gaurd_and2_vs_and.txt
fear-1.2.0 benchmarks/fear_gaurd_and2_vs_and.txt
fear-1.1.0 benchmarks/fear_gaurd_and2_vs_and.txt
fear-1.0.0 benchmarks/fear_gaurd_and2_vs_and.txt