Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
0ba35d0
build: Add the small benchmark fixture
shahen94 Oct 25, 2026
7018c3b
build: Add the medium benchmark fixture
shahen94 Oct 25, 2026
4b5f523
build: Add the large benchmark fixture
shahen94 Oct 25, 2026
f57137c
build: Pin the package managers the benchmark races
shahen94 Oct 25, 2026
eebfe35
build: Lock the benchmark's package managers
shahen94 Oct 25, 2026
b826be7
build: Check each benchmark install is complete
shahen94 Oct 25, 2026
48cd67d
build: Summarize benchmark results as Markdown
shahen94 Oct 25, 2026
08e7583
build: Add the benchmark runner
shahen94 Oct 25, 2026
fc3243c
build: Ignore benchmark results
shahen94 Oct 25, 2026
b9982f6
build: Add make bench
shahen94 Oct 25, 2026
7406184
ci: Run the benchmark on demand
shahen94 Oct 25, 2026
2edf7c1
docs: Document the benchmark and its first results
shahen94 Oct 25, 2026
6df1a8b
docs: Mention benchmarks in the testing guide
shahen94 Oct 25, 2026
fccd30d
docs: Plan the install performance work
shahen94 Oct 25, 2026
d86d173
perf: Clone whole store entries on macOS
shahen94 Oct 26, 2026
4ade285
build: Report peak memory in the benchmark summary
shahen94 Oct 26, 2026
ddb7495
docs: Update the benchmark results after cloning whole entries
shahen94 Oct 26, 2026
aa4b50a
docs: Plan the second round of install performance work
shahen94 Oct 26, 2026
1f05b34
build: Isolate pnpm's store and add a stale-cache scenario
shahen94 Oct 26, 2026
ef04b51
build: Label the stale scenario in the benchmark summary
shahen94 Oct 26, 2026
7459b30
ci: Run the stale scenario in the benchmark by default
shahen94 Oct 26, 2026
bfa3682
docs: Re-measure cold and empty-cache installs with pnpm isolated
shahen94 Oct 26, 2026
49beaf5
docs: Mark the benchmark isolation done
shahen94 Oct 26, 2026
2eb7da0
perf: Leak the install pipe once its graph is resolved
shahen94 Oct 26, 2026
c36abc0
perf: Keep craft install from freeing its packuments at exit
shahen94 Oct 26, 2026
9bc1075
perf: Keep craft update from freeing its packuments at exit
shahen94 Oct 26, 2026
8be1883
perf: Keep craft add from freeing its packuments at exit
shahen94 Oct 26, 2026
1a29e85
build: Time each package manager with its metadata fresh
shahen94 Oct 26, 2026
3b6e098
docs: Re-measure installs without a lockfile after 5.15
shahen94 Oct 26, 2026
837585b
docs: Mark skipping the free at exit done
shahen94 Oct 26, 2026
783dc81
refactor: Share virtual store entry names within the pipeline
shahen94 Oct 26, 2026
3292301
perf: Prune node_modules to a known graph without walking links
shahen94 Oct 26, 2026
aa0eb96
refactor: Prune by reachability after craft remove
shahen94 Oct 26, 2026
c20fa41
perf: Link while packages are imported
shahen94 Oct 26, 2026
7da6dc0
docs: Re-measure warm installs after linking while importing
shahen94 Oct 26, 2026
b14b733
docs: Mark linking while importing done
shahen94 Oct 26, 2026
0ec3626
build: Enable raw JSON values in the resolver
shahen94 Oct 26, 2026
a23f6e9
perf: Encode packuments with an index of their manifests
shahen94 Oct 26, 2026
ea3ec90
build: Register the packument module
shahen94 Oct 26, 2026
2aa5cfc
perf: Cache encoded packuments and full manifests by version
shahen94 Oct 26, 2026
71f79f7
perf: Request abbreviated packuments
shahen94 Oct 26, 2026
f5d8f68
perf: Resolve from encoded packuments, parsing only chosen versions
shahen94 Oct 26, 2026
5be4798
refactor: Drop the parsed packument type
shahen94 Oct 26, 2026
ba94885
refactor: Stop exporting NpmPackage
shahen94 Oct 26, 2026
2c528e4
refactor: Stop re-exporting NpmPackage from install_package
shahen94 Oct 26, 2026
4351dbd
test: Serve abbreviated packuments and single versions from the mock …
shahen94 Oct 26, 2026
efc0a38
test: Lock the libc of Linux packages that are never downloaded
shahen94 Oct 26, 2026
74056bb
test: Check installs request abbreviated metadata
shahen94 Oct 26, 2026
53efcc4
build: Share reading benchmark results between scripts
shahen94 Oct 26, 2026
4eceebd
refactor: Read benchmark results through the shared module
shahen94 Oct 26, 2026
3821345
build: Publish benchmark results to the website and the README
shahen94 Oct 26, 2026
e8228c0
docs: Add an interactive benchmark chart
shahen94 Oct 26, 2026
3ebc37a
docs: Register the benchmark chart in the site theme
shahen94 Oct 26, 2026
10f153c
docs: Publish the latest benchmark results to the website
shahen94 Oct 26, 2026
c62f8f6
docs: Add the README's benchmark chart for light themes
shahen94 Oct 26, 2026
1a8dea0
docs: Add the README's benchmark chart for dark themes
shahen94 Oct 26, 2026
5e85565
docs: Add the benchmarks page
shahen94 Oct 26, 2026
55edc8e
docs: Link the benchmarks page from the nav and sidebar
shahen94 Oct 26, 2026
56f1034
docs: Show benchmarks on the home page
shahen94 Oct 26, 2026
127d7e6
docs: Show benchmarks in the README
shahen94 Oct 26, 2026
44157d2
docs: Re-measure installs without a lockfile after abbreviated metadata
shahen94 Oct 26, 2026
582d011
docs: Mark lean packuments done
shahen94 Oct 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Benchmark

on:
workflow_dispatch:
inputs:
fixtures:
description: Fixtures to install
default: small,medium,large
scenarios:
description: Scenarios to time
default: cold,lockfile,cache,cache+lockfile,up-to-date,stale
runs:
description: Timed runs per scenario
default: "5"

permissions:
contents: read

jobs:
benchmark:
runs-on: ubuntu-latest
timeout-minutes: 120

steps:
- uses: actions/checkout@v4

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 24

- name: Install hyperfine
run: sudo apt-get update && sudo apt-get install -y hyperfine

- name: Build craft
run: cargo build --release -p craft

- name: Install the package managers
working-directory: bench/tools
run: ../../target/release/craft ci

- name: Race
env:
FIXTURES: ${{ inputs.fixtures }}
SCENARIOS: ${{ inputs.scenarios }}
RUNS: ${{ inputs.runs }}
run: bench/run.sh --fixtures "$FIXTURES" --scenarios "$SCENARIOS" --runs "$RUNS" --out bench/results/ci

- name: Summarize
run: cat bench/results/ci/summary.md >> "$GITHUB_STEP_SUMMARY"

- name: Upload the results
uses: actions/upload-artifact@v4
with:
name: benchmark
path: bench/results/ci
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
node_modules
.DS_Store
/craft.lock
/bench/results
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: build test lint fmt craft real-world docs
.PHONY: build test lint fmt craft real-world docs bench

all: build test lint

Expand All @@ -22,6 +22,10 @@ docs:
cargo build -q --release -p craft
cd docs && ../target/release/craft install && ../target/release/craft run docs:dev

bench:
cargo build -q --release -p craft
bench/run.sh $(filter-out $@,$(MAKECMDGOALS))

craft:
cargo run -p craft -- $(filter-out $@,$(MAKECMDGOALS))

Expand Down
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,23 @@
- 🧩 **npm-compatible**: ranges, dist-tags, aliases, git, tarball, `file:` and `link:` dependencies, peers, platform packages, and `.npmrc` registries and auth.
- 🖥️ **Everywhere**: native binaries for Linux (glibc and musl), macOS and Windows.

## ⚡ Benchmarks

<p align="center">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="docs/public/benchmarks-dark.svg">
<img alt="Install times of craft, npm, pnpm and Yarn for a Next.js app with 1,391 packages" src="docs/public/benchmarks-light.svg" width="760">
</picture>
</p>

- **Warm cache:** 1.72 s with a lockfile and 1.78 s without, the fastest of the four. pnpm takes 1.80 s and 1.91 s, npm and Yarn 7–12 s.
- **Cold install:** 18.4 s, against pnpm's 28.8 s, Yarn's 30.0 s and npm's 63.0 s.
- **Already installed:** 6 ms, 6× faster than pnpm and over 100× faster than npm and Yarn.
- **Memory:** the leanest of the four in every scenario; 71 MB with a warm cache, where npm peaks at 2.9 GB.
- **Behind pnpm** once cached metadata is older than the registry's 5-minute `max-age`: craft checks every package with the registry and takes 7.35 s, while pnpm trusts its cache and takes 1.80 s.

Every project, scenario and peak memory, and how it's kept fair: [Benchmarks](https://craftpkg.github.io/craft/guide/benchmarks) on the website, or the full tables in [`bench/README.md`](bench/README.md).

## 🚀 Installation

```bash
Expand Down
105 changes: 103 additions & 2 deletions REMAINING.md

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions apps/craft/tests/e2e/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@ fn installed_twice(registry: &MockRegistry, second_args: &[&str]) -> Project {
second
}

#[test]
fn requests_abbreviated_metadata() {
let registry = MockRegistry::start();
publish_debug(&registry);
let project = Project::new(&registry, json!({ "dependencies": { "debug": "^4.0.0" } }));

project.craft().arg("install").assert().success();

assert_eq!(registry.abbreviated_responses(), 2);
}

#[test]
fn revalidates_cached_metadata_with_etags() {
let registry = MockRegistry::start();
Expand Down
28 changes: 28 additions & 0 deletions apps/craft/tests/e2e/platforms.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,34 @@ fn locks_every_platform_so_the_lockfile_installs_anywhere() {
assert_eq!(binary(&mac), "darwin-arm64");
}

#[test]
fn locks_the_libc_of_linux_packages_it_never_downloads() {
let registry = MockRegistry::start();
publish_esbuild(&registry);
let mac = Project::new(
&registry,
json!({ "dependencies": { "esbuild": "0.25.0" } }),
);
craft_for(&mac, "darwin", "arm64", "")
.arg("install")
.assert()
.success();
let lock = mac.read_file("craft.lock");
let parsed: Value = serde_json::from_str(&lock).expect("craft.lock is JSON");
assert_eq!(
parsed["packages"]["@esbuild/linux-x64-musl@0.25.0"]["libc"],
json!(["musl"])
);

let linux = mac.sibling(json!({ "dependencies": { "esbuild": "0.25.0" } }));
linux.write_file("craft.lock", &lock);
craft_for(&linux, "linux", "x64", "musl")
.args(["install", "--frozen-lockfile"])
.assert()
.success();
assert_eq!(binary(&linux), "linux-x64-musl");
}

#[test]
fn skips_optional_dependencies_that_fail_to_install() {
let registry = MockRegistry::start();
Expand Down
112 changes: 112 additions & 0 deletions bench/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
# Benchmarks

Races `craft install` against npm, pnpm and Yarn on real projects, timed with [hyperfine](https://github.com/sharkdp/hyperfine).

```sh
make bench # every fixture and scenario, 5 runs each
make bench -- --fixtures small --runs 3 # a quick round
bench/run.sh --pms craft,pnpm --scenarios cold,up-to-date
```

It needs Node.js and hyperfine (`brew install hyperfine`, `apt install hyperfine`). The package managers it races are pinned in `tools/package.json` and installed there on the first run. Results go to `bench/results/<date-time>/`: a `summary.md` table, hyperfine's JSON for each scenario, and the lockfile each package manager wrote.

The **Benchmark** workflow runs it on a GitHub-hosted Ubuntu runner (Actions → Benchmark → Run workflow), puts the table in the run's summary and uploads the results.

## Results

2026-10-25 and 2026-10-26 · macOS, Apple M5 Max, 18 cores, 48 GB · `craft 0.1.0` · `npm 12.2.1` · `pnpm 12.15.0` · `yarn 4.18.1` · `node 24.18.0`

Mean wall time of 5 runs ± standard deviation, with the fastest in bold and how many times slower the others are. Rows were measured again, for all four, as craft changed: empty cache after pnpm's store was isolated (5.14 in `REMAINING.md`); warm cache with a lockfile and already installed after craft started linking while it imports (5.16); cold, warm cache and stale cache after craft started reading abbreviated metadata (5.9). To refresh, run `make bench` and replace these tables with its `summary.md`.

### small

An Express API server, 186 packages.

| | craft | npm | pnpm | yarn |
|---|---:|---:|---:|---:|
| Cold: no cache, no lockfile | **1.33 s ± 120 ms** | 2.97 s ± 444 ms (2.2×) | 2.77 s ± 59 ms (2.1×) | 2.40 s ± 210 ms (1.8×) |
| Lockfile, empty cache | **1.06 s ± 74 ms** | 1.36 s ± 322 ms (1.3×) | 4.54 s ± 1.25 s (4.3×) | 2.26 s ± 381 ms (2.1×) |
| Warm cache, no lockfile | **107 ms ± 1.8 ms** | 758 ms ± 7.1 ms (7.1×) | 147 ms ± 1.7 ms (1.4×) | 1.07 s ± 109 ms (10.0×) |
| Warm cache past its max-age, no lockfile | 633 ms ± 47 ms (4.0×) | 1.89 s ± 226 ms (12.0×) | **157 ms ± 8.3 ms** | 1.01 s ± 95 ms (6.4×) |
| Warm cache and lockfile | **103 ms ± 5.0 ms** | 442 ms ± 4.9 ms (4.3×) | 128 ms ± 2.4 ms (1.2×) | 459 ms ± 5.0 ms (4.4×) |
| Already installed | **4.3 ms ± 0.2 ms** | 171 ms ± 1.1 ms (39.9×) | 35 ms ± 1.3 ms (8.2×) | 226 ms ± 0.9 ms (52.8×) |

### medium

A Vite and React single-page app, 293 packages.

| | craft | npm | pnpm | yarn |
|---|---:|---:|---:|---:|
| Cold: no cache, no lockfile | **4.83 s ± 274 ms** | 11.28 s ± 780 ms (2.3×) | 6.13 s ± 203 ms (1.3×) | 6.36 s ± 319 ms (1.3×) |
| Lockfile, empty cache | **2.40 s ± 43 ms** | 2.78 s ± 356 ms (1.2×) | 11.86 s ± 5.82 s (4.9×) | 4.43 s ± 1.04 s (1.8×) |
| Warm cache, no lockfile | **229 ms ± 4.9 ms** | 2.28 s ± 23 ms (10.0×) | 282 ms ± 3.7 ms (1.2×) | 1.67 s ± 76 ms (7.3×) |
| Warm cache past its max-age, no lockfile | 917 ms ± 44 ms (3.4×) | 4.93 s ± 816 ms (18.4×) | **268 ms ± 3.1 ms** | 1.62 s ± 82 ms (6.1×) |
| Warm cache and lockfile | **217 ms ± 13 ms** | 946 ms ± 3.0 ms (4.4×) | 246 ms ± 8.1 ms (1.1×) | 935 ms ± 22 ms (4.3×) |
| Already installed | **4.5 ms ± 0.1 ms** | 197 ms ± 1.3 ms (43.6×) | 35 ms ± 0.8 ms (7.8×) | 299 ms ± 0.8 ms (66.4×) |

### large

A Next.js app with a design system, cloud SDKs, Storybook, Jest, Playwright and a webpack toolchain, 1391 packages.

| | craft | npm | pnpm | yarn |
|---|---:|---:|---:|---:|
| Cold: no cache, no lockfile | **18.38 s ± 1.73 s** | 62.98 s ± 14.08 s (3.4×) | 28.82 s ± 3.42 s (1.6×) | 29.97 s ± 7.11 s (1.6×) |
| Lockfile, empty cache | 19.82 s ± 10.01 s (1.6×) | **12.03 s ± 424 ms** | 29.34 s ± 10.30 s (2.4×) | 20.08 s ± 6.06 s (1.7×) |
| Warm cache, no lockfile | **1.78 s ± 13 ms** | 12.38 s ± 236 ms (6.9×) | 1.91 s ± 66 ms (1.1×) | 9.58 s ± 138 ms (5.4×) |
| Warm cache past its max-age, no lockfile | 7.35 s ± 655 ms (4.1×) | 41.53 s ± 3.01 s (23.1×) | **1.80 s ± 9.1 ms** | 9.64 s ± 149 ms (5.4×) |
| Warm cache and lockfile | **1.72 s ± 12 ms** | 7.26 s ± 57 ms (4.2×) | 1.80 s ± 34 ms (1.0×) | 7.67 s ± 26 ms (4.5×) |
| Already installed | **5.9 ms ± 0.3 ms** | 673 ms ± 1.8 ms (113.8×) | 35 ms ± 0.6 ms (6.0×) | 900 ms ± 3.0 ms (152.2×) |

Peak memory on `large`, which hyperfine 2 records alongside the time:

| | craft | npm | pnpm | yarn |
|---|---:|---:|---:|---:|
| Cold: no cache, no lockfile | **418 MB** | 841 MB | 792 MB | 4.9 GB |
| Lockfile, empty cache | **126 MB** | 613 MB | 513 MB | 4.1 GB |
| Warm cache, no lockfile | **71 MB** | 2.9 GB | 401 MB | 2.2 GB |
| Warm cache past its max-age, no lockfile | **67 MB** | 2.6 GB | 398 MB | 2.1 GB |
| Warm cache and lockfile | **93 MB** | 2.0 GB | 219 MB | 1.7 GB |
| Already installed | **13 MB** | 254 MB | 49 MB | 334 MB |

### What it shows

- **Already installed** is craft's clear win: it answers from `node_modules/.craft/state` in about 5 ms, 6–9× faster than pnpm and 40–150× faster than npm and Yarn.
- **Warm cache with a lockfile:** craft now wins on all three. It clones each package from the store with one `clonefile` call and links while the clones run (`large`: 9.03 s → 1.72 s, pnpm 1.80 s).
- **Warm cache without a lockfile:** craft now wins on all three too. It reads the registry's abbreviated metadata and keeps it on disk indexed by version, parsing only the manifest it picks (`large`: 4.29 s → 1.78 s and 5.5 GB → 71 MB, pnpm 1.91 s).
- **Past the registry's 5-minute `max-age`**, craft and npm revalidate every packument and fall 3–23× behind pnpm, which resolves from its cache without a single request (5.17). Yarn doesn't slow down either.
- **Cold installs:** craft is fastest on all three (`large`: 18.4 s, pnpm 28.8 s, Yarn 30.0 s, npm 63.0 s), helped by abbreviated metadata being a fraction of the full packuments.
- **Lockfile, empty cache:** craft is fastest on `small` and `medium`; on `large` npm leads (12.0 s to craft's 19.8 s).
- **Memory:** craft is the leanest of the four in every scenario, peaking at 418 MB for a cold `large` install, where Yarn reaches 4.9 GB.
- **Cold and empty-cache** runs are bound by the registry and the network: their deviations reach 50%, so differences under about 1.5× there aren't meaningful.

## Fixtures

| | |
|---|---|
| `small` | An Express API server |
| `medium` | A Vite and React single-page app, with ESLint, Vitest and Tailwind |
| `large` | A Next.js app with MUI, Firebase and the AWS SDK, plus Storybook, Jest, Playwright, Cypress and webpack |

A fixture is a directory holding a `package.json`; add one and pass its name to `--fixtures`. Every package manager must be able to install it without flags such as `--legacy-peer-deps`.

## Scenarios

| | Cache | Lockfile | node_modules | Like |
|---|:-:|:-:|:-:|---|
| `cold` | | | | a first install on a new machine |
| `lockfile` | | ✓ | | CI without a cache |
| `cache` | ✓ | | | adding a project on a machine that has installed before |
| `cache+lockfile` | ✓ | ✓ | | CI with a cache, or a fresh clone |
| `up-to-date` | ✓ | ✓ | ✓ | running install again |
| `stale` | older than `max-age` | | | installing again later that day |

Before `cache`, each package manager is set up again right before its own runs, so its metadata stays within the registry's `max-age` throughout. `stale` restores each package manager's home as setup left it, waiting first until the registry's 5-minute `max-age` has passed, so each one decides for itself whether its cached metadata is still good enough.

## Keeping it fair

- Each package manager gets its own `HOME` (and XDG directories, and pnpm its `PNPM_HOME`), so its cache, store and config start empty, and your own `.npmrc` or `.yarnrc.yml` don't apply. Deleting that home is what empties its cache. `npm_config_*`, `PNPM_*`, `YARN_*` and `COREPACK_*` variables from your shell are unset.
- Each one installs the fixture once before timing, and the run fails unless every direct dependency is in `node_modules`. The lockfile from that install is restored before every run that has one.
- No install scripts run: npm, pnpm and Yarn get `--ignore-scripts` (Yarn `enableScripts: false`), and craft runs none because the fixtures trust no package.
- npm skips `audit` and `fund`, which are extra requests after the install. Yarn uses the `node-modules` linker, so everyone writes a `node_modules`.
- `CI=false` is set, so no one switches to frozen or immutable installs.
- Everything else is each package manager's default. Every install hits the real npm registry, so cold and lockfile numbers move with the network; compare them within one run, not across runs.
51 changes: 51 additions & 0 deletions bench/fixtures/large/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"name": "bench-large",
"description": "A Next.js app with a design system, cloud SDKs, Storybook, Jest, Playwright and a webpack toolchain",
"private": true,
"dependencies": {
"@apollo/client": "^4.3.5",
"@aws-sdk/client-s3": "^3.1156.0",
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.1",
"@mui/icons-material": "^9.5.0",
"@mui/material": "^9.5.0",
"@reduxjs/toolkit": "^2.13.0",
"axios": "^1.20.0",
"date-fns": "^4.4.0",
"firebase": "^13.1.0",
"graphql": "^17.0.2",
"lodash": "^4.18.1",
"next": "^16.4.3",
"react": "^19.3.1",
"react-dom": "^19.3.1",
"react-redux": "^9.3.0"
},
"devDependencies": {
"@babel/core": "^8.0.9",
"@babel/preset-env": "^8.0.7",
"@babel/preset-react": "^8.0.1",
"@babel/preset-typescript": "^8.0.7",
"@playwright/test": "^1.64.1",
"@storybook/react-vite": "^10.6.3",
"@types/jest": "^30.0.0",
"@types/lodash": "^4.17.27",
"@types/node": "^26.6.5",
"@types/react": "^19.3.0",
"@types/react-dom": "^19.3.0",
"babel-jest": "^30.5.2",
"cypress": "^16.2.0",
"eslint": "^10.13.0",
"eslint-config-next": "^16.4.3",
"husky": "^9.1.7",
"jest": "^30.5.2",
"lint-staged": "^17.6.0",
"prettier": "^3.9.10",
"sass": "^1.106.1",
"storybook": "^10.6.3",
"ts-node": "^10.9.2",
"typescript": "~6.0.3",
"webpack": "^5.112.2",
"webpack-cli": "^7.2.3",
"webpack-dev-server": "^6.1.0"
}
}
31 changes: 31 additions & 0 deletions bench/fixtures/medium/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "bench-medium",
"description": "A Vite and React single-page app",
"private": true,
"dependencies": {
"@tanstack/react-query": "^5.104.5",
"clsx": "^2.1.1",
"react": "^19.3.1",
"react-dom": "^19.3.1",
"react-router": "^8.5.0",
"zustand": "^5.0.16"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@tailwindcss/vite": "^4.3.3",
"@testing-library/jest-dom": "^7.0.1",
"@testing-library/react": "^16.3.3",
"@types/react": "^19.3.0",
"@types/react-dom": "^19.3.0",
"@vitejs/plugin-react": "^6.1.2",
"eslint": "^10.13.0",
"eslint-plugin-react-hooks": "^7.1.1",
"jsdom": "^30.1.3",
"prettier": "^3.9.10",
"tailwindcss": "^4.3.3",
"typescript": "~6.0.3",
"typescript-eslint": "^8.72.0",
"vite": "^8.3.5",
"vitest": "^5.0.5"
}
}
26 changes: 26 additions & 0 deletions bench/fixtures/small/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "bench-small",
"description": "An Express API server",
"private": true,
"dependencies": {
"bcryptjs": "^3.0.3",
"cors": "^2.8.6",
"dotenv": "^18.0.9",
"express": "^5.3.0",
"helmet": "^8.3.0",
"jsonwebtoken": "^9.0.3",
"morgan": "^1.12.1",
"pg": "^8.23.1",
"pino": "^10.4.0",
"zod": "^4.6.7"
},
"devDependencies": {
"@types/cors": "^2.8.19",
"@types/express": "^5.0.6",
"@types/jsonwebtoken": "^9.0.10",
"@types/node": "^26.6.5",
"nodemon": "^3.1.14",
"tsx": "^4.23.15",
"typescript": "~6.0.3"
}
}
Loading
Loading