mirror of
https://github.com/denoland/deno.git
synced 2025-01-03 04:48:52 -05:00
chore: add bundle_no_check benchmark (#8130)
This commit is contained in:
parent
c4d33e8d77
commit
acc201625f
2 changed files with 8 additions and 2 deletions
|
@ -93,6 +93,11 @@ const EXEC_TIME_BENCHMARKS: &[(&str, &[&str], Option<i32>)] = &[
|
||||||
&["bundle", "std/examples/chat/server_test.ts"],
|
&["bundle", "std/examples/chat/server_test.ts"],
|
||||||
None,
|
None,
|
||||||
),
|
),
|
||||||
|
(
|
||||||
|
"bundle_no_check",
|
||||||
|
&["bundle", "--no-check", "std/examples/chat/server_test.ts"],
|
||||||
|
None,
|
||||||
|
),
|
||||||
];
|
];
|
||||||
|
|
||||||
const RESULT_KEYS: &[&str] =
|
const RESULT_KEYS: &[&str] =
|
||||||
|
@ -308,7 +313,7 @@ fn run_strace_benchmarks(
|
||||||
deno_exe.to_str().unwrap(),
|
deno_exe.to_str().unwrap(),
|
||||||
])
|
])
|
||||||
.args(args.iter())
|
.args(args.iter())
|
||||||
.stdout(Stdio::null())
|
.stdout(Stdio::inherit())
|
||||||
.spawn()?
|
.spawn()?
|
||||||
.wait()?;
|
.wait()?;
|
||||||
|
|
||||||
|
@ -319,7 +324,7 @@ fn run_strace_benchmarks(
|
||||||
thread_count.insert(
|
thread_count.insert(
|
||||||
name.to_string(),
|
name.to_string(),
|
||||||
Value::Number(Number::from(
|
Value::Number(Number::from(
|
||||||
strace_result.get("clone").unwrap().calls + 1,
|
strace_result.get("clone").map(|d| d.calls).unwrap_or(0) + 1,
|
||||||
)),
|
)),
|
||||||
);
|
);
|
||||||
syscall_count.insert(
|
syscall_count.insert(
|
||||||
|
|
|
@ -1041,6 +1041,7 @@ pub fn parse_wrk_output(output: &str) -> WrkOutput {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct StraceOutput {
|
pub struct StraceOutput {
|
||||||
pub percent_time: f64,
|
pub percent_time: f64,
|
||||||
pub seconds: f64,
|
pub seconds: f64,
|
||||||
|
|
Loading…
Reference in a new issue