MCPcopy Create free account
hub / github.com/RenderKit/oidn / addBenchmark

Function addBenchmark

apps/oidnBenchmark.cpp:70–88  ·  view source on GitHub ↗

Adds a benchmark to the list

Source from the content-addressed store, hash-verified

68
69// Adds a benchmark to the list
70void addBenchmark(const std::string& filter, const std::vector<std::string>& inputs, const std::pair<int, int>& size)
71{
72 Benchmark bench;
73 bench.name = filter;
74 bench.name += ".";
75 for (size_t i = 0; i < inputs.size(); ++i)
76 {
77 if (i > 0) bench.name += "_";
78 bench.name += inputs[i];
79 }
80 bench.name += "." + toString(size.first) + "x" + toString(size.second);
81
82 bench.filter = filter;
83 bench.inputs = inputs;
84 bench.width = size.first;
85 bench.height = size.second;
86
87 benchmarks.push_back(bench);
88}
89
90std::shared_ptr<ImageBuffer> newImage(DeviceRef& device, int width, int height)
91{

Callers 1

addAllBenchmarksFunction · 0.85

Calls 2

toStringFunction · 0.85
sizeMethod · 0.80

Tested by

no test coverage detected