Skip to content

Commit

Permalink
Fix seconds mapping in Date benchmark (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblapworth authored Apr 2, 2023
1 parent 7cfa78e commit 01ded17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/swift-parsing-benchmark/Date.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
}
Expand Down

0 comments on commit 01ded17

Please sign in to comment.