swc/scripts/instrument.sh
Donny/강동윤 4c983e9158
perf(es/codegen, es/parser): Improve performance (#2406)
ast_node:
 - Make `.span()` inlinable.

swc_ecma_codegen:
 - Reduce call to *heavy* `.span()` calls.

swc_ecma_parser:
 - Reduce `memmove` by using typed-arena.

swc_bundler:
 - Make `Bundle.bundle` take `&mut self`.
 - Make drop concurrent.
2021-10-15 12:49:37 +09:00

4 lines
127 B
Bash
Executable File

#!/usr/bin/env bash
set -eu
cargo instruments --release -t time --bench typescript --features tracing/release_max_level_off $@