-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathdeno_bench.deno.txt
35 lines (29 loc) · 1.94 KB
/
deno_bench.deno.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
┏━━━━━━━━━━━━━━━━┓
┃ DENO_BENCH ┃
┗━━━━━━━━━━━━━━━━┛
ALTERNATIVES ==> #See benchmark.js
VERSION ==> #Part of Deno CLI (see its doc)
deno bench [UPATH|DIR...] #Like deno test ... but to run Deno.bench()
[-- ARG...] #If DIR, use DIR/**/[..._|.]bench.EXT, with EXT js[x]|mjs|ts[x]|mts
#Same CLI flags except no:
# - --fail-fast
# - debugging: --inspect*
# - parallelism: --parallel, --shuffle
# - --doc
# - --coverage
#Prints environment information: CPU, deno version, OS, arch
CONFIG.exclude
CONFIG.bench.include|exclude #Like CONF.test.include|exclude
--json !#Like deno ...
Deno.bench(...) #Same as Deno.test(...) except:
# - TOPTS -> POPTS
# - T -> P
#Run multiple times, automatically guessing number of iterations
#Reports: mean, min|max, p75|99|995
POPTS.* #Same as TOPTS.* but no sanitizeOps|Resources
POPTS.warmup #NUM (def: 20) of warmup iterations
POPTS.n #NUM (def: 10) of non-warmup iterations
POPTS.group #'GROUP'. Print summary with comparison of each benchmark of the group with their baseline.
POPTS.baseline #BOOL (def: false). If no explicit baseline, use fastest benchmark
P.name|origin #Like T.*
P.start|end() #To measure