Skip to content

Commit 78de59d

Browse files
committed
Improve benchmarks
1 parent f7dc810 commit 78de59d

File tree

2 files changed

+337
-270
lines changed

2 files changed

+337
-270
lines changed

Tests/Benchmarks/JSONParserBenchmarkTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ struct JSONParserBenchmarkTests {
142142

143143
@Test
144144
func compareParsingSpeed() throws {
145-
let iterations = 50
145+
let iterations = 30
146146
let labelWidth = 25
147147

148148
print("Benchmarking with \(iterations) iterations...\n")
@@ -219,7 +219,7 @@ struct JSONParserBenchmarkTests {
219219

220220
@Test
221221
func compareTokenizerLoadingSpeed() async throws {
222-
let iterations = 20
222+
let iterations = 15
223223
let labelWidth = 18
224224

225225
print("Benchmarking tokenizer loading with \(iterations) iterations...\n")

0 commit comments

Comments
 (0)