smarr / ReBench

Execute and document benchmarks reproducibly.
MIT License
85 stars 24 forks source link

Make the output for the current benchmark that's running more compact #237

Closed smarr closed 6 months ago

smarr commented 6 months ago

Currently, the output does not really fit on the screen when looking for instance at the GitLab log.

A single line is for instance:

Running Benchmarks:  WhileLoop (TruffleSOM-native-interp-bc-ee, micro-startup, 30) 1 yuria  mean:       38.9    time left: 00:01:54: 87.84%

After shortening, the output is reduced to:

Running    Bench1 (TestRunner2, TestSuite2, 3) 7 1 val2    45872.0ms    left: 00:00:01: 35.00%

The shorter output comes from removing strings (Benchmarks, mean: time), and by calculating the number of characters needed to print all run descriptions, instead of hardcoding it to 70.

coveralls commented 6 months ago

Coverage Status

coverage: 84.802% (+0.1%) from 84.703% when pulling 15a1b86573cd47724380b76717c8ddfff41f7e3c on shorter-output into a762e07e0666da00852306848a6dacac71d5df8f on master.