Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 utils: fix EqualFold and docs (#1833)
* 🔍 utils: add/improve tests for ToLower/ToUpper/EqualFold * 🐛 utils: fix EqualFold and docs
- Loading branch information
Showing
4 changed files
with
52 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2b5b6b2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
2
.Benchmark_ToLowerBytes/fiber
49.21
ns/op 0 B/op 0 allocs/op22.86
ns/op 0 B/op 0 allocs/op2.15
Benchmark_ToUpperBytes/fiber
62.11
ns/op 0 B/op 0 allocs/op30.81
ns/op 0 B/op 0 allocs/op2.02
Benchmark_EqualFoldBytes/fiber
98.98
ns/op 0 B/op 0 allocs/op39.02
ns/op 0 B/op 0 allocs/op2.54
Benchmark_EqualFoldBytes/default
299.1
ns/op 0 B/op 0 allocs/op123.7
ns/op 0 B/op 0 allocs/op2.42
Benchmark_ToUpper/default
323
ns/op 80 B/op 1 allocs/op157
ns/op 48 B/op 1 allocs/op2.06
Benchmark_ToLower/default
319.1
ns/op 80 B/op 1 allocs/op157.8
ns/op 48 B/op 1 allocs/op2.02
Benchmark_EqualFold/fiber
98.46
ns/op 0 B/op 0 allocs/op44.22
ns/op 0 B/op 0 allocs/op2.23
Benchmark_EqualFold/default
302.8
ns/op 0 B/op 0 allocs/op123.4
ns/op 0 B/op 0 allocs/op2.45
This comment was automatically generated by workflow using github-action-benchmark.
2b5b6b2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
largeStr
is about twice as long as previous inputs, hence the benchmark results are fine.