Skip to content

perf: add git clone + npm install benchmark (regular fs vs fusey mount) - #28

Merged
tofarr merged 1 commit into
mainfrom
perf-clone-npm-benchmark
Dec 3, 2026
Merged

tofarr merged 1 commit into
mainfrom
perf-clone-npm-benchmark

Conversation

@tofarr

@tofarr tofarr commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator

This PR was created by an AI agent (OpenHands) on behalf of the user.

Why

We want a repeatable performance test based on typical usage: git clone of OpenHands followed by npm install, run once on a regular filesystem and once on a fusey FUSE mount. perf/clone_npm_bench.sh [regular|fuse|both] does this and prints a side-by-side markdown table with a fuse / regular ratio column.

  • Timed phases: clone, install, status (git status), walk (find), read (tar of every file). Fuse-only: mount, rm_rf, unmount (includes the final flush).
  • The fuse target uses the reference broker/ as the object store, so no S3 or Docker is needed.
  • Each target gets its own empty npm cache so every install downloads cold.
  • Results are written as TSV to perf/results/ (gitignored).

Validation

  • Regular filesystem (overlay root, 16 cores, 62 GB RAM), two runs: clone 41.8s / 40.1s, install 41.6s / 41.7s, git status ~0.3s, find ~0.15s, tar read ~2.9s. The tree has 119,097 files and is 1.7 GiB.
  • Fuse target: not yet run end to end. The sandbox had no /dev/fuse and could not create one. The broker, daemon start and index init worked, and the mount failed at fusermount3: fuse device not found. This needs a run on a FUSE-capable host before the numbers can be trusted.

@tofarr can click here to continue refining the PR

Co-authored-by: openhands <openhands@all-hands.dev>

@hieptl hieptl left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! 🙏

@tofarr
tofarr merged commit 715427c into main Dec 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants