More typo changes

This commit is contained in:
Arran Ubels 2023-02-15 15:56:43 +11:00
parent e654ac7b35
commit cefe5b3dbe
No known key found for this signature in database
GPG Key ID: 135EDC7B21D17F48

View File

@ -7,7 +7,6 @@ import (
)
/*
go test -bench Parse
BenchmarkShotgunParse 50000 37588 ns/op 13258 B/op 167 allocs/op
@ -21,14 +20,13 @@ BenchmarkParseAny-4 200000 8627 ns/op 144 B/op 3 allo
BenchmarkShotgunParse-8 50000 33940 ns/op 13136 B/op 169 allocs/op
BenchmarkParseAny-8 200000 10146 ns/op 912 B/op 29 allocs/op
BenchmarkParseDateString-8 10000 123077 ns/op 208 B/op 13 allocs/op
*/
func BenchmarkShotgunParse(b *testing.B) {
b.ReportAllocs()
for i := 0; i < b.N; i++ {
for _, dateStr := range testDates {
// This is the non dateparse traditional approach
_ = parseShotgunStyle(dateStr)
_, _ = parseShotgunStyle(dateStr)
}
}
}
@ -37,7 +35,7 @@ func BenchmarkParseAny(b *testing.B) {
b.ReportAllocs()
for i := 0; i < b.N; i++ {
for _, dateStr := range testDates {
_ = ParseAny(dateStr)
_, _ = ParseAny(dateStr)
}
}
}