Skip to content

Commit d4265fb

Browse files
authored
chore(benchmark): use 1000 npm package to benchmark resolve performance (#57)
1 parent 67d9b6c commit d4265fb

File tree

7 files changed

+24901
-111
lines changed

7 files changed

+24901
-111
lines changed

.github/workflows/benchmark.yml

+14-1
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,27 @@ jobs:
2424
- name: Checkout Branch
2525
uses: taiki-e/checkout-action@v1
2626

27+
- uses: pnpm/action-setup@v4
28+
29+
- uses: actions/setup-node@v4
30+
with:
31+
node-version-file: .node-version
32+
cache: pnpm
33+
34+
- name: Setup benchmark data
35+
run: cd benches && pnpm install --ignore-workspace
36+
2737
- uses: Boshen/setup-rust@main
2838
with:
2939
cache-key: benchmark
3040
save-cache: ${{ github.ref_name == 'main' }}
3141
tools: cargo-codspeed
42+
3243
- uses: ./.github/actions/pnpm
3344
- name: Build Benchmark
34-
run: cargo codspeed build --features codspeed
45+
env:
46+
RUSTFLAGS: "-C debuginfo=1 -C strip=none -g"
47+
run: cargo codspeed build
3548

3649
- name: Run benchmark
3750
uses: CodSpeedHQ/action@v3

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
target/
2-
/node_modules
2+
node_modules
33
fuzz/Cargo.lock

Cargo.lock

+170-35
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)