-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The performance for the average case seems to be 7% slower compared to v0.0.73. But for the best case, it is about 45% faster. ``` go test -timeout 7m -count=10 -run=XXXX -bench=BenchmarkAverageCase/ong github.com/komuw/ong/log > old.txt go test -timeout 7m -count=10 -run=XXXX -bench=BenchmarkAverageCase/ong github.com/komuw/ong/log > new.txt benchstat old.txt new.txt pkg: github.com/komuw/ong/log cpu: Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz │ old.txt │ new.txt │ │ sec/op │ sec/op vs base │ AverageCase/ong-8 5.287µ ± 4% 5.678µ ± 6% +7.41% (p=0.000 n=10) │ old.txt │ new.txt │ │ B/op │ B/op vs base │ AverageCase/ong-8 1.475Ki ± 0% 1.567Ki ± 0% +6.29% (p=0.000 n=10) │ old.txt │ new.txt │ │ allocs/op │ allocs/op vs base │ AverageCase/ong-8 27.00 ± 0% 26.00 ± 0% -3.70% (p=0.000 n=10) go test -timeout 7m -count=10 -run=XXXX -bench=BenchmarkBestCase/ong github.com/komuw/ong/log > old.txt go test -timeout 7m -count=10 -run=XXXX -bench=BenchmarkBestCase/ong github.com/komuw/ong/log > new.txt benchstat old.txt new.txt pkg: github.com/komuw/ong/log cpu: Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz │ old.txt │ new.txt │ │ sec/op │ sec/op vs base │ BestCase/ong-8 2.315µ ± 2% 1.253µ ± 7% -45.90% (p=0.000 n=10) │ old.txt │ new.txt │ │ B/op │ B/op vs base │ BestCase/ong-8 1024.0 ± 0% 864.0 ± 0% -15.62% (p=0.000 n=10) │ old.txt │ new.txt │ │ allocs/op │ allocs/op vs base │ BestCase/ong-8 19.000 ± 0% 2.000 ± 0% -89.47% (p=0.000 n=10) ```
- Loading branch information
Showing
5 changed files
with
121 additions
and
71 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
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