summaryrefslogtreecommitdiff
path: root/cli/js/performance_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/performance_test.ts')
-rw-r--r--cli/js/performance_test.ts15
1 files changed, 0 insertions, 15 deletions
diff --git a/cli/js/performance_test.ts b/cli/js/performance_test.ts
deleted file mode 100644
index 89b7cad8b..000000000
--- a/cli/js/performance_test.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-import { unitTest, assert, createResolvable } from "./test_util.ts";
-
-unitTest({ perms: { hrtime: false } }, async function performanceNow(): Promise<
- void
-> {
- const resolvable = createResolvable();
- const start = performance.now();
- setTimeout((): void => {
- const end = performance.now();
- assert(end - start >= 10);
- resolvable.resolve();
- }, 10);
- await resolvable;
-});