Provides focused microbenchmarks for expression evaluation hot paths (dynamic attrs, getDerivations attr scanning, and repeated builtins.match).
15 lines
284 B
C++
15 lines
284 B
C++
#include <benchmark/benchmark.h>
|
|
|
|
#include "nix/expr/eval-gc.hh"
|
|
#include "nix/store/globals.hh"
|
|
|
|
int main(int argc, char ** argv)
|
|
{
|
|
nix::initLibStore(false);
|
|
nix::initGC();
|
|
|
|
::benchmark::Initialize(&argc, argv);
|
|
::benchmark::RunSpecifiedBenchmarks();
|
|
return 0;
|
|
}
|