Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
May 3, 2024

Conversation

smarr
Copy link
Owner

@smarr smarr commented May 3, 2024

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.

smarr added 2 commits May 3, 2024 23:02
- determine the number of needed characters for all run descriptions
- shorten other bits
- show unit of total

Signed-off-by: Stefan Marr <[email protected]>
Signed-off-by: Stefan Marr <[email protected]>
@smarr smarr added the Feature label May 3, 2024
@coveralls
Copy link

Coverage Status

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

@smarr smarr merged commit 1de0e22 into master May 3, 2024
12 checks passed
@smarr smarr deleted the shorter-output branch May 3, 2024 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants