Skip to content

Command Line Interface

esbench

Start ESBench in the current directory.

Options:

Options
--config <file>Use specified config file (string)
--logLevel <level>info | warn | error | off (string)
--no-loaderDisable builtin TypeScript loader (boolean)
--file <path>Run only suite that contains the value in their paths (string)
--name <regex>Run benchmark with names matching the Regex pattern (string)
--builder <regex>Run only suites built with the specified builder which name matching the Regex pattern (string)
--executor <regex>Run benchmarks using only the executor which name matching the Regex pattern (string)
shell
# Run all suites
esbench

# Run case "For-index" in suite files that paths contains "array-sum.js`
esbench --file array-sum.js --name ^For-index$

report

Generate report from result files that generated by Raw Reporter).

Options:

Options
--config <file>Use specified config file (string)
--no-loaderDisable builtin TypeScript loader (boolean)
<results...>Result files generated by rawReporter to load (string[])
shell
# Combine the two results files into one report
esbench report result-1.json result-2.json

Released under the MIT License.