mirror of
https://github.com/NixOS/nix.git
synced 2025-11-21 09:49:36 +01:00
14 lines
356 B
C++
14 lines
356 B
C++
#include <benchmark/benchmark.h>
|
|
#include "nix/store/globals.hh"
|
|
|
|
// Custom main to initialize Nix before running benchmarks
|
|
int main(int argc, char ** argv)
|
|
{
|
|
// Initialize libstore
|
|
nix::initLibStore(false);
|
|
|
|
// Initialize and run benchmarks
|
|
::benchmark::Initialize(&argc, argv);
|
|
::benchmark::RunSpecifiedBenchmarks();
|
|
return 0;
|
|
}
|