Skip to content

Commit 01ded17

Browse files
Fix seconds mapping in Date benchmark (#295)
1 parent 7cfa78e commit 01ded17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/swift-parsing-benchmark/Date.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ let dateSuite = BenchmarkSuite(name: "Date") { suite in
4747
"+".utf8.map { 1 }
4848
"-".utf8.map { -1 }
4949
}
50-
Digits(2).map { $0 * 60 }
50+
Digits(2).map { $0 * 60 * 60 }
5151
":".utf8
52-
Digits(2)
52+
Digits(2).map { $0 * 60 }
5353
}
5454
.map { $0 * ($1 + $2) }
5555
}

0 commit comments

Comments
 (0)