mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
chore: move bench test to spec test (#27970)
This commit is contained in:
parent
1eb4142143
commit
8a07d38a53
4 changed files with 10 additions and 17 deletions
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
use serde_json::json;
|
use serde_json::json;
|
||||||
use test_util as util;
|
use test_util as util;
|
||||||
use url::Url;
|
|
||||||
use util::assert_contains;
|
use util::assert_contains;
|
||||||
use util::assert_not_contains;
|
use util::assert_not_contains;
|
||||||
use util::TestContext;
|
use util::TestContext;
|
||||||
|
@ -22,20 +21,6 @@ fn recursive_permissions_pledge() {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
|
||||||
fn file_protocol() {
|
|
||||||
let file_url =
|
|
||||||
Url::from_file_path(util::testdata_path().join("bench/file_protocol.ts"))
|
|
||||||
.unwrap()
|
|
||||||
.to_string();
|
|
||||||
let context = TestContext::default();
|
|
||||||
context
|
|
||||||
.new_command()
|
|
||||||
.args(format!("bench bench/file_protocol.ts {file_url}"))
|
|
||||||
.run()
|
|
||||||
.assert_matches_file("bench/file_protocol.out");
|
|
||||||
}
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn conditionally_loads_type_graph() {
|
fn conditionally_loads_type_graph() {
|
||||||
let context = TestContext::default();
|
let context = TestContext::default();
|
||||||
|
|
8
tests/specs/bench/file_protocol/__test__.jsonc
Normal file
8
tests/specs/bench/file_protocol/__test__.jsonc
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"args": [
|
||||||
|
"bench",
|
||||||
|
"file_protocol.ts"
|
||||||
|
],
|
||||||
|
"output": "file_protocol.out",
|
||||||
|
"exitCode": 0
|
||||||
|
}
|
|
@ -1,8 +1,8 @@
|
||||||
Check file://[WILDCARD]/bench/file_protocol.ts
|
Check file://[WILDCARD]/file_protocol.ts
|
||||||
CPU | [WILDCARD]
|
CPU | [WILDCARD]
|
||||||
Runtime | Deno [WILDCARD] ([WILDCARD])
|
Runtime | Deno [WILDCARD] ([WILDCARD])
|
||||||
|
|
||||||
[WILDCARD]/bench/file_protocol.ts
|
[WILDCARD]/file_protocol.ts
|
||||||
|
|
||||||
benchmark time/iter (avg) iter/s (min … max) p75 p99 p995
|
benchmark time/iter (avg) iter/s (min … max) p75 p99 p995
|
||||||
----------- ----------------------------- --------------------- --------------------------
|
----------- ----------------------------- --------------------- --------------------------
|
Loading…
Add table
Add a link
Reference in a new issue