1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-30 11:16:38 -05:00
denoland-deno/cli/tests/testdata/bench/exit_sanitizer.out
Bartek Iwańczuk 09ae512ccb
feat: "deno bench" subcommand (#13713)
This commit adds "deno bench" subcommand and "Deno.bench()"
API that allows to register bench cases. 

The API is modelled after "Deno.test()" and "deno test" subcommand.

Currently the output is rudimentary and bench cases and not
subject to "ops" and "resource" sanitizers.

Co-authored-by: evan <github@evan.lol>
2022-03-11 23:07:02 +01:00

35 lines
874 B
Text

Check [WILDCARD]/bench/exit_sanitizer.ts
running 3 benches from [WILDCARD]/bench/exit_sanitizer.ts
bench exit(0) ... 1000 iterations FAILED ([WILDCARD])
bench exit(1) ... 1000 iterations FAILED ([WILDCARD])
bench exit(2) ... 1000 iterations FAILED ([WILDCARD])
failures:
exit(0)
AssertionError: Bench attempted to exit with exit code: 0
at [WILDCARD]
at [WILDCARD]/bench/exit_sanitizer.ts:2:8
at [WILDCARD]
exit(1)
AssertionError: Bench attempted to exit with exit code: 1
at [WILDCARD]
at [WILDCARD]/bench/exit_sanitizer.ts:6:8
at [WILDCARD]
exit(2)
AssertionError: Bench attempted to exit with exit code: 2
at [WILDCARD]
at [WILDCARD]/bench/exit_sanitizer.ts:10:8
at [WILDCARD]
failures:
exit(0)
exit(1)
exit(2)
bench result: FAILED. 0 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD])
error: Bench failed