Skip to content

Commit f9341be

Browse files
PeterChou1asl
authored andcommitted
add more details
1 parent fa20f86 commit f9341be

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

content/posts/2024-12-04-improve-clang-doc.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,18 @@ In this case, the ASTVisitor invoked by Clang-Doc would visit the serialized Bas
7171
Here is a plot of the benchmarking numbers:
7272

7373
<div style="margin:0 auto;">
74-
<img src="/img/Clang-Doc-benchmark-numbers.png"><br/>
74+
<img src="/img/clang-doc-benchmark-numbers.png"><br/>
7575
</div>
7676

77+
The benchmarking numbers were performed on a machine with a 6th gen Intel(R) Xeon(R) CPU @ 2.00GHz w/ 96 cores, and 180GB of ram. Clang-doc is able to run concurrently, however the benchmark here is with concurrency set to 2. This is because anything higher crashes the slow version of the tool with an out of memory error. It took around 6 hours to complete a full generation of LLVM documentation in the previous tool, where as current version took around 4 hours.
78+
79+
Here is a plot of the benchmark by number of threads:
80+
81+
<div style="margin:0 auto;">
82+
<img src="/img/clang-doc-concurrency.png"><br/>
83+
</div>
84+
85+
We notice a pretty dramatic dropoff as more and more threads are utilize from the original tool which ran in 6 hours down to 13 minutes at 64 threads. Considering the previous versions of the tool could not use the higher thread count without crashing (even on a machine with 180GB of ram), the performance gains are even more dramatic.
7786

7887
### Added Template Mustache HTML Backend
7988

43.1 KB
Loading
77.5 KB
Loading

0 commit comments

Comments
 (0)