https://github.com/zegl/co2go
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/zegl/co2go
- Owner: zegl
- Created: 2019-03-24T09:37:05.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-24T09:40:41.000Z (over 7 years ago)
- Last Synced: 2025-03-18T20:08:25.561Z (over 1 year ago)
- Language: Go
- Size: 1000 Bytes
- Stars: 25
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# co2go
Benchmark CO2 emissions for Go programs.
Use as a Go drop-in replacement.
```
~/s/g/co2go ./co2go test -bench . --benchmem
goos: darwin
goarch: amd64
BenchmarkFoo-8 300000 5565 ns/op 0 B/op 0 allocs/op 0.000001352088889 g CO2/op
BenchmarkFoo2-8 300000 5530 ns/op 0 B/op 0 allocs/op 0.000001343585185 g CO2/op
PASS
ok _/Users/gustav/src/go-paris 3.456s
```