mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
bench: fix off-by-one error in thread_count (#9145)
This commit is contained in:
parent
2077864a8d
commit
18150b3a78
1 changed files with 1 additions and 1 deletions
|
@ -340,7 +340,7 @@ fn run_strace_benchmarks(
|
||||||
file.as_file_mut().read_to_string(&mut output)?;
|
file.as_file_mut().read_to_string(&mut output)?;
|
||||||
|
|
||||||
let strace_result = test_util::parse_strace_output(&output);
|
let strace_result = test_util::parse_strace_output(&output);
|
||||||
let clone = strace_result.get("clone").map(|d| d.calls).unwrap_or(0);
|
let clone = strace_result.get("clone").map(|d| d.calls).unwrap_or(0) + 1;
|
||||||
let total = strace_result.get("total").unwrap().calls;
|
let total = strace_result.get("total").unwrap().calls;
|
||||||
thread_count.insert(name.to_string(), clone);
|
thread_count.insert(name.to_string(), clone);
|
||||||
syscall_count.insert(name.to_string(), total);
|
syscall_count.insert(name.to_string(), total);
|
||||||
|
|
Loading…
Reference in a new issue