Note: The provided
benchmarker.pymodule is ONLY compatible with Windows based platforms.
These benchmarks are designed to stress-test the engine and measure its performance across various scenarios. Each benchmark targets a specific subsystem of the engine. The results of each benchmark can found in the corresponding benchmark folder.
The only requirement is installing the benchmarking dependencies:
pip install .[benchmarking]- Run a benchmark:
python -m benchmarks.<name>- View the outputs in:
benchmarks/<name>
A benchmarker.py module is provided to create custom benchmarks. Here’s how to use it:
- Import the
benchmarkermodule:
import benchmarks.benchmarker as benchmarkerImportant: You must import the benchmarker before importing extro.
- Start tracking by calling
benchmarker.start_tracking()with the desired output path and benchmark duration:
benchmarker.start_tracking("./path/to/benchmark", duration) # duration in seconds- Import and run your project as usual. The benchmarker will automatically stop after the specified duration, generate a report, and exit the engine:
import extro