From 4dac8a4860f6dd819dccc136b124057066a67fd6 Mon Sep 17 00:00:00 2001 From: Ian Gregory Date: Sat, 20 Aug 2022 23:01:40 -0400 Subject: [PATCH] Make performance tests stricter --- spec/examples/json_parser.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/examples/json_parser.cr b/spec/examples/json_parser.cr index 22bf231..dfa56ad 100644 --- a/spec/examples/json_parser.cr +++ b/spec/examples/json_parser.cr @@ -189,7 +189,7 @@ describe "JSON parser" do it "for large arrays of integers" do times = Benchmark.measure do json.parse( - "[#{(1..50_000).to_a.join(", ")}]" + "[#{(1..500_000).to_a.join(", ")}]" ) end print_times times @@ -199,7 +199,7 @@ describe "JSON parser" do it "for large arrays of strings" do times = Benchmark.measure do json.parse( - "[#{(1..50_000).map { |i| "\"#{i}\"" }.join(", ")}]" + "[#{(1..500_000).map { |i| "\"#{i}\"" }.join(", ")}]" ) end print_times times