This crate provides a way (on Linux) to run a subset of the Sightglass benchmarks natively. This involves compiling two specially-crafted shared libraries: (1) this engine and (2) the benchmark itself.
$ cd <sightglass-base>/engines/native/libengine
$ cargo build --release
$ cp target/release/libnative_bench_api.so ../libengine.so
$ cd -
$ <sightglass-base>/benchmarks/build-native.sh path/to/benchmark
See the benchmark-building requirements for more details.
* Note: not all benchmarks support a native build
$ cd <sightglass-base>
$ cargo build --release
$ LD_LIBRARY_PATH=./engines/native/ benchmarks/run-native.sh \
/path/to/benchmark.so