mirror of
https://github.com/vlang/v.git
synced 2025-09-13 09:25:45 -04:00
benchmark: align C:
values for compilations slower than 10 seconds (for some tests on the CI) (#21356)
This commit is contained in:
parent
f13ed6e7be
commit
2e57e03bd5
@ -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}'
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user