From 01ded1787ba38eed370b964499e40bf44e8c12e5 Mon Sep 17 00:00:00 2001 From: J Date: Mon, 3 Apr 2023 04:04:35 +1200 Subject: [PATCH] Fix seconds mapping in Date benchmark (#295) --- Sources/swift-parsing-benchmark/Date.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/swift-parsing-benchmark/Date.swift b/Sources/swift-parsing-benchmark/Date.swift index 032888992e..1e73810fb7 100644 --- a/Sources/swift-parsing-benchmark/Date.swift +++ b/Sources/swift-parsing-benchmark/Date.swift @@ -47,9 +47,9 @@ let dateSuite = BenchmarkSuite(name: "Date") { suite in "+".utf8.map { 1 } "-".utf8.map { -1 } } - Digits(2).map { $0 * 60 } + Digits(2).map { $0 * 60 * 60 } ":".utf8 - Digits(2) + Digits(2).map { $0 * 60 } } .map { $0 * ($1 + $2) } }