This project contains two benchmarks for testing the performance of the Babylon.js 3D engine.
# install required node packages. npm ci # build the workload, output is ./dist npm run build
There are two distinct workloads in this benchmark suite:
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
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