Skip to content

go.tools/cmd/benchcmp: multiple -cpu results are no longer sorted #7259

@davecheney

Description

@davecheney
What steps will reproduce the problem?

% go tool benchcmp {old,new}.txt
benchmark                          old ns/op     new ns/op     delta      
BenchmarkChanContended-2           2303          2108          -8.47%     
BenchmarkChanSync-2                5954          6361          +6.84%     
BenchmarkChanProdCons100-2         2093          2183          +4.30%     
BenchmarkChanNonblocking-2         415           431           +3.86%     
BenchmarkChanProdCons0-2           1539          1490          -3.18%     
BenchmarkChanContended             1264          1304          +3.16%     
BenchmarkChanSem-2                 2071          2133          +2.99%     
BenchmarkSelectContended           4125          4007          -2.86%     
BenchmarkSelectUncontended-2       2131          2084          -2.21%     
BenchmarkSelectUncontended         4023          3935          -2.19%     
BenchmarkChanUncontended-2         626           637           +1.76%     
BenchmarkChanProdConsWork100       5103          5016          -1.70%     
BenchmarkChanProdConsWork10        5452          5361          -1.67%     
BenchmarkSelectProdCons-2          6823          6711          -1.64%     
BenchmarkChanProdCons10-2          2381          2420          +1.64%     
BenchmarkChanUncontended           1238          1257          +1.53%     
BenchmarkChanCreation-2            1574          1551          -1.46%     
BenchmarkChanProdConsWork10-2      2899          2858          -1.41%     
BenchmarkChanProdConsWork100-2     2794          2758          -1.29%     
BenchmarkChanNonblocking           475           469           -1.26%     
BenchmarkChanProdCons100           1357          1344          -0.96%     
BenchmarkChanProdConsWork0         6525          6464          -0.93%     
BenchmarkChanProdConsWork0-2       3359          3328          -0.92%     
BenchmarkGoroutineSelect-2         15964050      16111755      +0.93%     
BenchmarkChanCreation              2964          2941          -0.78%     
BenchmarkChanSync                  2662          2644          -0.68%     
BenchmarkChanSem                   1277          1285          +0.63%     
BenchmarkChanProdCons10            1714          1705          -0.53%     
BenchmarkSelectNonblock-2          987           992           +0.51%     
BenchmarkChanProdCons0             2747          2755          +0.29%     
BenchmarkSelectProdCons            12751         12781         +0.24%     
BenchmarkSelectNonblock            1967          1970          +0.15%     
BenchmarkGoroutineSelect           25675354      25652770      -0.09%     
BenchmarkSelectContended-2         2351          2352          +0.04%   

What is the expected output? What do you see instead?

Results should be sorted so that all benchmarks are grouped by their relative -cpu
settings.


Please use labels and text to provide additional information.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions