【文件属性】:
文件名称:基准测试:低级Go和CPU基准测试的集合
文件大小:7KB
文件格式:ZIP
更新时间:2021-02-18 09:35:39
Go
长椅
一组低级Go和CPU基准测试,用于比较操作系统和CPU体系结构之间的行为。 该软件包没有依赖性。
做int64或float64除法更快吗? 相对于ARMv8,ARMv6呢? 结果可能会让你吃惊!
用法
go get -d -u github.com/maruel/bench
go test -cpu 1 -bench=. github.com/maruel/bench -benchtime=100ms
检查
检查组件,比较彼此之间或跨平台的微基准测试很有用。
go test -c
go tool objdump -S -s BenchmarkDivision ./bench.test
【文件预览】:
bench-master
----bench_test.go(5KB)
----LICENSE(11KB)
----bench.go(344B)
----README.md(571B)
----go.mod(40B)