* benchmark: update README and add update script * update google benchmark library to 1.9.4 * update tnt CMakeLists to match the library new version
Updating the benchmark library
This directory contains a script to update the version of the benchmark library used by Filament.
Prerequisites
bash: The script is a bash script.curl: Used to download the benchmark archive.unzip: Used to decompress the benchmark archive.git: To stage the updated files.
Usage
To update the benchmark library, run the following command from this directory:
./update_benchmark.sh <version_tag>
Where <version_tag> is the version of benchmark you want to download (e.g., 1.9.4).
Alternatively, you can specify a commit SHA instead of a version tag:
./update_benchmark.sh --sha <commit_sha>
The script will:
- Download the specified version of benchmark from GitHub.
- Unzip the archive.
- Replace the existing
third_party/benchmarkdirectory with the new version (excluding thetntdirectory). - Clean up the downloaded archive and temporary files.
- Stage the changes in git.
After the script finishes, please review the changes and commit them.