summaryrefslogtreecommitdiff
path: root/test/perf-assetFactory.cpp
blob: c90ac52cc65f9beedec43738e20c13587dea3502 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "assetFactory/assetFactory.h"
#include "assetFactory/factoryMesh.h"
#include "testMainWindow.h"
#include "ui/applicationBase.h"
#include <benchmark/benchmark.h>

static void
brush47xml_load(benchmark::State & state)
{
	TestMainWindow window;

	for (auto _ : state) {
		benchmark::DoNotOptimize(AssetFactory::loadXML(RESDIR "/brush47.xml"));
	}
}

BENCHMARK(brush47xml_load);

BENCHMARK_MAIN();