mruby-benchmark: standardize block parameter spacing

changed block spacing from { | to {| for consistency.

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-12-06 22:53:35 +09:00
parent 3cc4a77f49
commit b7563c327b
+2 -2
View File
@@ -77,7 +77,7 @@ module Benchmark
if memory
if Object.const_defined?(:ObjectSpace)
start_count = ObjectSpace.count_objects
start_objects = start_count.values.inject(0) { |sum, n| sum + n }
start_objects = start_count.values.inject(0) {|sum, n| sum + n }
end
end
@@ -91,7 +91,7 @@ module Benchmark
if memory && start_count
end_count = ObjectSpace.count_objects
end_objects = end_count.values.inject(0) { |sum, n| sum + n }
end_objects = end_count.values.inject(0) {|sum, n| sum + n }
objects_allocated = end_objects - start_objects
# Estimate memory based on object count