Skip to content

Commit

Permalink
Make performance tests stricter
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatsJustCheesy committed Aug 21, 2022
1 parent 3b3c43d commit 4dac8a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/examples/json_parser.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 4dac8a4

Please sign in to comment.