Add small desktop capture

Summary: A much smaller tree than the previous one. It only has 100 or so nodes

Reviewed By: NickGerleman

Differential Revision: D53632451

fbshipit-source-id: 1268499fa768f3b6673ff8bcedac23cf6d9395ac
This commit is contained in:
Joe Vilches
2024-02-13 17:22:08 -08:00
committed by Facebook GitHub Bot
parent cae7ef924a
commit e679327904
2 changed files with 1910 additions and 1 deletions

View File

@@ -325,7 +325,9 @@ void benchmark(std::filesystem::path& capturesDir) {
std::ifstream captureFile(capture.path());
json j = json::parse(captureFile);
std::string captureName = capture.path().stem().string();
std::cout << "Starting benchmark for " << captureName << std::endl;
for (uint32_t i = 0; i < kNumRepititions; i++) {
BenchmarkResult result = generateBenchmark(j);
treeCreationDurations[i] = result.treeCreationDuration;
@@ -333,10 +335,11 @@ void benchmark(std::filesystem::path& capturesDir) {
totalDurations[i] = result.treeCreationDuration + result.layoutDuration;
}
std::string captureName = capture.path().stem().string();
printBenchmarkResult(captureName + " tree creation", treeCreationDurations);
printBenchmarkResult(captureName + " layout", layoutDurations);
printBenchmarkResult(captureName + " total", totalDurations);
std::cout << std::endl;
}
}

File diff suppressed because it is too large Load Diff