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:
committed by
Facebook GitHub Bot
parent
cae7ef924a
commit
e679327904
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
1906
benchmark/captures/rendering-sample-mac.json
Normal file
1906
benchmark/captures/rendering-sample-mac.json
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user