Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zhixian001/go-benchmarks
https://github.com/zhixian001/go-benchmarks
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/zhixian001/go-benchmarks
- Owner: zhixian001
- Created: 2021-12-15T20:28:56.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2021-12-15T22:47:02.000Z (almost 3 years ago)
- Last Synced: 2023-10-10T12:28:20.205Z (about 1 year ago)
- Language: Go
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Go Benchmakrs
## Usage
```go
tests := make(map[string]*tester.TestEntry)tests["Test A"] = &tester.TestEntry{
Function: func() { myFuncA(argA, argB) },
}tests["Test B"] = &tester.TestEntry{
Function: func() { myFuncB(argA, argB) },
}tester.BenchmarkFunctions(&tests, 100, true, true)
```## Useful Commands
### Build with gccgo auto vectorization
```bash
go build -compiler=gccgo -gccgoflags="-O3 -march=native -ffast-math"
go build -compiler=gccgo -gccgoflags="-O3 -march=core-avx2 -ffast-math"
go build -compiler=gccgo -gccgoflags="-O3 -march=haswell -ffast-math"
```