0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-04 01:44:26 -05:00

chore: move bench test to spec test (#27970)

This commit is contained in:
HasanAlrimawi 2025-02-05 17:49:10 +02:00 committed by Bartek Iwańczuk
parent 88f22dda3b
commit d744843e72
No known key found for this signature in database
GPG key ID: 0C6BCDDC3B3AD750
4 changed files with 10 additions and 17 deletions

View file

@ -2,7 +2,6 @@
use serde_json::json;
use test_util as util;
use url::Url;
use util::assert_contains;
use util::assert_not_contains;
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]
fn conditionally_loads_type_graph() {
let context = TestContext::default();

View file

@ -0,0 +1,8 @@
{
"args": [
"bench",
"file_protocol.ts"
],
"output": "file_protocol.out",
"exitCode": 0
}

View file

@ -1,8 +1,8 @@
Check file://[WILDCARD]/bench/file_protocol.ts
Check file://[WILDCARD]/file_protocol.ts
CPU | [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
----------- ----------------------------- --------------------- --------------------------