mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 23:27:56 +03:00
15 lines
450 B
Bash
15 lines
450 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -eu
|
||
|
|
||
|
|
||
|
echo "Binary load time"
|
||
|
hyperfine --warmup 10 --runs 5 'node ./node-swc/benches/load.mjs'
|
||
|
|
||
|
echo "Load + minify antd, all core"
|
||
|
hyperfine --warmup 5 --runs 5 "node ./node-swc/benches/minify.mjs $PWD/crates/swc_ecma_minifier/benches/full/antd.js"
|
||
|
|
||
|
echo "Load + minify antd, 2 core"
|
||
|
hyperfine --warmup 5 --runs 5 "RAYON_NUM_THREADS=2 node ./node-swc/benches/minify.mjs $PWD/crates/swc_ecma_minifier/benches/full/antd.js"
|
||
|
|