sharkdp/hyperfine

Add an option to save a benchmark run for later comparisons

开放

#607 创建于 2023年1月28日

 (6 条评论) (11 个反应) (0 位负责人)Rust (479 个派生)batch import
feature-requesthelp wanted

仓库指标

星标
 (28,110 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

There are times when I want to have some baseline saved that I compare later changes to. It would be convenient if I had a way to save a benchmarking run and then load that to later runs. Something like

$ hyperfine --save-benchmark baseline 'sleep 1'
$ hyperfine --load-benchmark baseline 'sleep 0.5'
{{ display things as though `hyperfine 'sleep 1' 'sleep 0.5'` had been run }}

If you're interested in supporting this then I can work on adding it as a feature

贡献者指南