1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

ci: workaround for v vet failing for v clean-code over the new v bench script (using \ in its path on windows).

This commit is contained in:
Delyan Angelov 2022-12-19 12:31:11 +02:00
parent 8873127687
commit 353fdb4ca0

View File

@ -16,6 +16,7 @@ import benchmark
// SPENT 319.897 ms in sum: 1000000 | key in a_as_middle
// SPENT 1.842 ms in sum: 1000000 | key in a_as_first
fn main() {
max_iterations := os.getenv_opt('MAX_ITERATIONS') or { '1000' }.int()
max_items := os.getenv_opt('MAX_ITEMS') or { '100' }.int()
eprintln('> max_iterations: ${max_iterations} over max_items: ${max_items}')
@ -68,3 +69,4 @@ for _ in 0 .. max_iterations {
sum += int(key in a_as_first)
}
b.measure('sum: ${sum} | key in a_as_first')
}