benchmark: align C: values for compilations slower than 10 seconds (for some tests on the CI) (#21356)

This commit is contained in:
Delyan Angelov 2024-04-26 17:50:58 +03:00 committed by GitHub
parent f13ed6e7be
commit 2e57e03bd5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -188,7 +188,7 @@ pub fn (b &Benchmark) step_message_with_label_and_duration(label string, msg str
}
}
if opts.preparation > 0 {
return '${label:-5s} [${sprogress}] C: ${f64(opts.preparation.microseconds()) / 1_000.0:6.1F} ms, R: ${timed_line}'
return '${label:-5s} [${sprogress}] C: ${f64(opts.preparation.microseconds()) / 1_000.0:7.1F} ms, R: ${timed_line}'
}
return '${label:-5s} [${sprogress}] ${timed_line}'
}

View File

@ -76,7 +76,7 @@ fn test_out_files() {
n_expected := normalize_panic_message(expected, vroot)
if found.contains('================ V panic ================') {
if n_found.starts_with(n_expected) {
println('${term.green('OK (panic)')} C:${compile_ms:5}ms, R:${run_ms:2}ms ${label}')
println('${term.green('OK (panic)')} C:${compile_ms:6}ms, R:${run_ms:2}ms ${label}')
continue
} else {
// Both have panics, but there was a difference...
@ -88,7 +88,7 @@ fn test_out_files() {
}
}
if expected != found {
println('${term.red('FAIL')} C:${compile_ms:5}ms, R:${run_ms:2}ms ${label}')
println('${term.red('FAIL')} C:${compile_ms:6}ms, R:${run_ms:2}ms ${label}')
println(term.header('expected:', '-'))
println(expected)
println(term.header('found:', '-'))
@ -101,7 +101,7 @@ fn test_out_files() {
}
total_errors++
} else {
println('${term.green('OK ')} C:${compile_ms:5}ms, R:${run_ms:2}ms ${label}')
println('${term.green('OK ')} C:${compile_ms:6}ms, R:${run_ms:2}ms ${label}')
}
}
assert total_errors == 0