0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-15 01:57:09 -05:00
denoland-deno/cli/tests/testdata
Nayeem Rahman 19ab929e1c
fix(bench): explicit timers don't force high precision measurements (#20272)
Disables `BenchContext::start()` and `BenchContext::end()` for low
precision benchmarks (less than 0.01s per iteration). Prints a warning
when they are used in such benchmarks, suggesting to remove them.

```ts
Deno.bench("noop", { group: "noops" }, () => {});

Deno.bench("noop with start/end", { group: "noops" }, (b) => {
  b.start();
  b.end();
});
```

Before:
```
cpu: 12th Gen Intel(R) Core(TM) i9-12900K
runtime: deno 1.36.2 (x86_64-unknown-linux-gnu)

file:///home/nayeem/projects/deno/temp3.ts
benchmark                    time (avg)        iter/s             (min … max)       p75       p99      p995
----------------------------------------------------------------------------- -----------------------------


noop                          2.63 ns/iter 380,674,131.4    (2.45 ns … 27.78 ns)   2.55 ns   4.03 ns   5.33 ns
noop with start and end     302.47 ns/iter   3,306,146.0     (200 ns … 151.2 µs)    300 ns    400 ns    400 ns

summary
  noop
   115.14x faster than noop with start and end
```

After:
```
cpu: 12th Gen Intel(R) Core(TM) i9-12900K
runtime: deno 1.36.1 (x86_64-unknown-linux-gnu)

file:///home/nayeem/projects/deno/temp3.ts
benchmark                    time (avg)        iter/s             (min … max)       p75       p99      p995
----------------------------------------------------------------------------- -----------------------------


noop                          3.01 ns/iter 332,565,561.7    (2.73 ns … 29.54 ns)   2.93 ns   5.29 ns   7.45 ns
noop with start and end       7.73 ns/iter 129,291,091.5    (6.61 ns … 46.76 ns)   7.87 ns  13.12 ns  15.32 ns
Warning start() and end() calls in "noop with start and end" are ignored because it averages less than 0.01s per iteration. Remove them for better results.

summary
  noop
   2.57x faster than noop with start and end
```
2023-08-31 14:02:40 +02:00
..
assets chore(core): fix flaky flock_test on windows (#19477) 2023-06-12 20:30:29 +00:00
bench fix(bench): explicit timers don't force high precision measurements (#20272) 2023-08-31 14:02:40 +02:00
benches
bundle feat: upgrade deno_ast to 0.26 (#18795) 2023-04-21 21:16:25 +00:00
cache
cert fix: retry module download once if server errored (#17252) 2023-08-01 10:52:28 +02:00
check fix: deno diagnostic - clarify where to put triple-slash directive (#20009) 2023-08-01 15:27:25 +00:00
commonjs
compile chore: Use relative paths for assert imports to avoid test flakes (#19427) 2023-06-08 18:10:37 +00:00
coverage chore: upgrade to dprint 0.39 (#19768) 2023-07-08 18:34:08 +00:00
doc
dynamic_import feat(cli): don't check permissions for statically analyzable dynamic imports (#18713) 2023-04-26 16:23:28 -04:00
encoding
eval refactor: merge Deno & Node inspectors (#18691) 2023-04-30 07:24:13 +00:00
file_extensions fix(cli): restore deno run - to handle stdin as typescript (#18391) 2023-03-23 12:45:43 -04:00
fmt feat: add support for globs in the config file and CLI arguments for files (#19102) 2023-05-23 03:39:59 +02:00
import_assertions refactor: merge Deno & Node inspectors (#18691) 2023-04-30 07:24:13 +00:00
import_maps
info fix: deno info should respect import map (#19781) 2023-07-25 18:23:43 +02:00
inspector
install
jsx
lint feat: add support for globs in the config file and CLI arguments for files (#19102) 2023-05-23 03:39:59 +02:00
lockfile chore: reconfigure windows builder storage (#19601) 2023-06-28 13:41:47 -06:00
lsp fix(lsp): remove quotes and period surrounding specifier in uncached messages (#19794) 2023-07-11 02:27:22 +00:00
malformed_config
module_graph
node chore: deno_core -> 0.201.0 (#20135) 2023-08-21 18:23:27 +05:30
npm refactor: upgrade deno_ast 0.28 and deno_semver 0.4 (#20193) 2023-08-21 18:23:28 +05:30
package_json refactor: upgrade deno_ast 0.28 and deno_semver 0.4 (#20193) 2023-08-21 18:23:28 +05:30
repl
run fix(ext/web): add stream tests to detect v8slice split bug (#20253) 2023-08-24 09:01:07 -06:00
runtime
subdir fix(unstable): vendor cache should support adding files to hashed directories (#20070) 2023-08-06 12:25:48 -04:00
task fix(npm): run pre and post tasks if present (#19178) 2023-05-18 15:51:17 -04:00
test fix(test): JUnit reporter includes file, line and column attributes (#20174) 2023-08-21 18:23:27 +05:30
tls fix(ext/net): implement a graceful error on an invalid SSL certificate (#20157) 2023-08-21 18:23:27 +05:30
tsc
tsc2
type_definitions
types
vendor feat(vendor): support for npm specifiers (#19186) 2023-05-19 22:39:27 +00:00
webcrypto
workers fix(runtime): navigator.userAgent in web worker (#20129) 2023-08-21 18:23:27 +05:30
cat.ts
echo.ts
echo_server.ts
error_cause_recursive_aggregate.ts
error_cause_recursive_aggregate.ts.out
error_cause_recursive_tail.ts
error_cause_recursive_tail.ts.out
navigator_language.ts
navigator_languages.ts
spawn_kill_permissions.ts chore(cli): Don't assume deno is in path for spawn_kill_permissions (#19198) 2023-05-22 09:54:58 -06:00
symlink_to_subdir