Skip to content

Particle move benchmark: ECSs, MobX, Redux, threads and GPU; data 0.10.37 - #293

Merged
krisnye merged 2 commits into
mainfrom
krisnye/ecs-performance-guide
Nov 30, 2026
Merged

krisnye merged 2 commits into
mainfrom
krisnye/ecs-performance-guide

Conversation

@krisnye

@krisnye krisnye commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator

Description

Adds packages/data-particle-benchmark, a bulk particle move (1M particles, 250K moved) on one thread, on every thread count and on the GPU, compared against the memory floor. It covers:

  • @adobe/ecs: a WASM kernel, the same kernel run as JS, a plain row system, 2–16 threads, and a GPU kernel
  • @adobe/data's current ECS and its deprecated old ECS
  • hand-written AssemblyScript SIMD kernels
  • plain and immutable objects, simulated Horizon, MobX, Redux and Redux Toolkit

The results and the reasons behind them are in its README, with results/threads.md and results/gpu.md covering threads and the GPU.

  • Dependencies stay isolated. The package is kept out of the pnpm workspace and installed with pnpm run setup (--ignore-workspace), so MobX, Redux, AssemblyScript and Playwright are installed only there.
  • The AssemblyScript kernels moved out of @adobe/data. They existed only for its perftests. @adobe/data drops the WASM build, its AssemblyScript dependencies and the WASM variants of perftest/ecs1-perf.ts and ecs2-perf.ts.
  • The ECS guide's index gets a Performance section linking this README and the ecs-benchmark comparison against C++ ECSs. The guide's checks pass. @adobe/ecs isn't bumped, since only its docs change.

Testing

  • pnpm run lint and a clean pnpm run typecheck (all *.tsbuildinfo removed first) pass at the root.
  • @adobe/ecs guide tests pass (220).
  • The benchmark package typechecks and builds. Every implementation passes a correctness check before it's timed.
  • @adobe/data's old perftest still runs.

krisnye and others added 2 commits November 30, 2026 12:06
…; move the AssemblyScript kernels into it

Co-Authored-By: OpenCode <noreply@opencode.ai>
@krisnye
krisnye merged commit 25e0585 into main Nov 30, 2026
4 checks passed
@krisnye
krisnye deleted the krisnye/ecs-performance-guide branch November 30, 2026 22:37
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.

1 participant