--bench-reporter=reporter


稳定性: 1 - 实验性

指定一个基准测试报告器。内置的报告器有 spec 和 json。 json 报告器会生成换行分隔的 JSON。你也可以使用从当前工作目录解析的模块规范来指定自定义报告器。

🌐 Specifies a benchmark reporter. The built-in reporters are spec and json. The json reporter emits newline-delimited JSON. A custom reporter can be specified using a module specifier resolved from the current working directory.

此选项可以重复使用。当指定多个报告者时,每个报告者都必须有一个对应的 --bench-reporter-destination。默认报告者是 spec。

🌐 This option can be repeated. When multiple reporters are specified, each must have a corresponding --bench-reporter-destination. The default reporter is spec.