benchmarks/speed.rb in pastel-0.5.3 vs benchmarks/speed.rb in pastel-0.6.0

- old
+ new

@@ -15,7 +15,31 @@ end bench.compare! end -# color decorate: 14K/s -# dsl styling: 10K/s +# version 0.6.0 + +# Calculating ------------------------------------- +# color decorate 7346 i/100ms +# dsl styling 3436 i/100ms +# ------------------------------------------------- +# color decorate 96062.1 (±7.9%) i/s - 484836 in 5.081126s +# dsl styling 38761.1 (±13.9%) i/s - 192416 in 5.065053s +# +# Comparison: +# color decorate: 96062.1 i/s +# dsl styling: 38761.1 i/s - 2.48x slower + +# version 0.5.3 + +# Calculating ------------------------------------- +# color decorate 1428 i/100ms +# dsl styling 1174 i/100ms +# ------------------------------------------------- +# color decorate 16113.1 (±21.5%) i/s - 77112 in 5.054487s +# dsl styling 12622.9 (±20.8%) i/s - 61048 in 5.076738s +# +# Comparison: +# color decorate: 16113.1 i/s +# dsl styling: 12622.9 i/s - 1.28x slower +#