Sha256: bbb890b88519173f181c1ea58cd932be40c4c46825e875981a4bda683c5d6197

Contents?: true

Size: 569 Bytes

Versions: 5

Compression:

Stored size: 569 Bytes

Contents

# So, it's better to avoid building pattern match in runtime

> bundle exec rake perf:fear:pattern_matching_construction_vs_execution
Warming up --------------------------------------
        construction    24.425k i/100ms
           execution    80.516k i/100ms
Calculating -------------------------------------
        construction    267.887k (± 4.9%) i/s -      1.343M in   5.029005s
           execution      1.085M (± 2.6%) i/s -      5.475M in   5.049775s

Comparison:
           execution:  1084968.2 i/s
        construction:   267886.6 i/s - 4.05x  slower

Version data entries

5 entries across 5 versions & 1 rubygems

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