microbenchUsage top-level constant

String const microbenchUsage

The usage text of microbenchCommand.

Implementation

const microbenchUsage =
    '''Usage: dart run microbench [run] [options] [paths...] [-- program arguments...]
       dart run microbench diff [--threshold=PCT] <before.json> <after.json>
       dart run microbench help

Run benchmarks
  Give a file to run it directly, or a directory to discover *_benchmark.dart
  files recursively. With no paths, the runner searches benchmark/.
  --target=LIST       comma-separated: jit, aot, js, wasm (default: aot)
  --out-dir=DIR       where compiled files go (default: build/microbench)

  These options apply to each benchmark program. Use -- before custom arguments.
$programOptionsUsage

Compare saved runs
  diff compares two reports created with --save and exits with code 1 on a
  regression. Use --threshold=PCT to set the minimum change (default: 5%).

Examples
  dart run microbench --quick
  dart run microbench --target=jit --quick benchmark/string_benchmark.dart
  dart run microbench diff before.json after.json
''';