This repository contains a set of web benchmarks used to measure the performance of the Ladybird browser engine.
To install the python packages required by the benchmark runner you must install the packages listed in
requirements.txt. You can do this using pip:
pip install -r requirements.txt
Before running the benchmarks you must first build Ladybird using the build instructions for Ladybird.
For best results, it is recommended to build Ladybird with the Distribution build preset, like so:
BUILD_PRESET=Distribution ./Meta/ladybird.py build ladybird
After Ladybird is built, benchmarks are run using the run.py script. You must provide the path to the Ladybird
executable using the --executable argument. For example:
./run.py --executable "${LADYBIRD_SOURCE_DIR}/Build/distribution/bin/ladybird" --output results.json
After running benchmarks and saving the results as a JSON file, you can compare the results using the compare.py
script. For example:
./compare.py -o old.json -n new.json