This repository has been archived by the owner on Jan 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize randBool() and randString() (#41)
* - Optimize the randBool() function. Previous time: 15.175 ns/op New time: 4.78 ns/op * - Optimize randString() by using strings.Builder. 30% less memory used and a 5 to 7% higher throughput. * - Add benchmarks for randBool() and randString(). * - Ran go fmt
- Loading branch information
1 parent
a994f4a
commit c04b05f
Showing
2 changed files
with
29 additions
and
11 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