benchmark/run.rb in attributes_dsl-0.0.1 vs benchmark/run.rb in attributes_dsl-0.0.2
- old
+ new
@@ -92,31 +92,31 @@
# Provide a benchmark
Benchmark.ips do |x|
x.config time: 5, warmup: 5
- x.report("attributes_dsl") do
- AttributesDSLExample.call
+ x.report("anima") do
+ AnimaExample.call
end
- x.report("virtus") do
- VirtusExample.call
+ x.report("kwattr") do
+ KwattrExample.call
end
- x.report("active_attr") do
- AttributesDSLExample.call
- end
-
x.report("fast_attributes") do
FastAttributesExample.call
end
- x.report("anima") do
- AnimaExample.call
+ x.report("attributes_dsl") do
+ AttributesDSLExample.call
end
- x.report("kwattr") do
- KwattrExample.call
+ x.report("active_attr") do
+ AttributesDSLExample.call
+ end
+
+ x.report("virtus") do
+ VirtusExample.call
end
x.compare!
end