bench
bench copied to clipboard
Possible Improvements
-
-o
support rename the output -
-cmp Benchmark1 Benchmark2
compare benchmarks with different names - Do not save benchmark results until we have enough data (improve error messages)
- Better support macOS with performance locking (@yangwenmai)
- On Linux we have great stuff: https://www.kernel.org/doc/Documentation/cpu-freq/governors.txt
- How to control cpureq on darwin? Here are some investigations, needs a double check:
-
sysctl hw | grep freq
- See https://github.com/shirou/gopsutil/blob/master/cpu/cpu_darwin_cgo.go
- See mach documentation: https://opensource.apple.com/source/xnu/xnu-201.5/bsd/sys/sysctl.h.auto.html
- See more mach documentation: https://opensource.apple.com/source/xnu/xnu-792/osfmk/mach/processor_info.h.auto.html