mirror-jetstream/babylonjs
Camillo Bruni 2ca0706159 Update custom-main to latest main
6215add877

Change-Id: I2fe6e6a634a406f4c0e5c491b4ff6286ae888175
Reviewed-on: https://chromium-review.googlesource.com/c/external/github.com/WebKit/JetStream/+/7124399
Reviewed-by: Leszek Swirski <leszeks@chromium.org>
Reviewed-by: Igor Sheludko <ishell@chromium.org>
2025-11-05 04:22:38 -08:00
..
benchmark Update custom-main to latest main 2025-11-05 04:22:38 -08:00
build Update custom-main to latest main 2025-11-05 04:22:38 -08:00
data Update custom-main to latest main 2025-11-05 04:22:38 -08:00
dist Update custom-main to latest main 2025-11-05 04:22:38 -08:00
src Update custom-main to latest main 2025-11-05 04:22:38 -08:00
package-lock.json Update custom-main to latest main 2025-11-05 04:22:38 -08:00
package.json Update custom-main to latest main 2025-11-05 04:22:38 -08:00
README.md Update custom-main to latest main 2025-11-05 04:22:38 -08:00
webpack.config.mjs Update custom-main to latest main 2025-11-05 04:22:38 -08:00

Babylon.js Benchmarks for JetStream

This project contains two benchmarks for testing the performance of the Babylon.js 3D engine.

Build Instructions

# install required node packages.
npm ci
# build the workload, output is ./dist
npm run build

Workloads

There are two distinct workloads in this benchmark suite:

1. Startup Workload

This benchmark measures the time it takes for the Babylon.js engine to initialize. It evaluates a large, bundled source file and measures the time to parse the code and execute a simple test. This workload is primarily focused on parse and startup time.

To run this benchmark in node for testing:

npm run test:startup

2. Scene Workload

This benchmark measures the rendering performance of a complex 3D scene. It loads 3D models (.glb files), animations, and particle systems, and then renders the scene for a number of frames.

To run this benchmark in node for testing:

npm run test:scene