https://github.com/zeyi2 commented:
I tested this change on 31 projects with all clang-tidy checks enabled, here are the results: (for each project the original runs were rerun 3 times then averaged) | Project | Files | Original (s) | Modified (s) | Change | Status | |---|---:|---:|---:|---:|---| | cppcheck | 165 | 43.128 | 31.332 | −27.35% | Passed | | llvm-project | 1043 | 2515.859 | 2502.468 | −0.53% | Passed | | doxygen | 137 | 70.426 | 75.897 | **+7.77%** | Passed | | poco | 792 | 122.092 | 117.665 | −3.63% | Passed | | abseil-cpp | 157 | 19.018 | 20.864 | **+9.70%** | Passed | | curl | 338 | 12.841 | 12.178 | −5.16% | Passed | | stdexec | 2 | 8.645 | 8.400 | −2.83% | Passed | | zstd | 41 | 2.802 | 2.439 | −12.98% | Passed | | libuv | 35 | 1.646 | 1.697 | **+3.13%** | Passed | | libgit2 | 169 | 5.077 | 4.922 | −3.06% | Passed | | catch2 | 108 | 5.741 | 5.467 | −4.77% | Passed | | yaml-cpp | 32 | 2.552 | 2.629 | **+3.05%** | Passed | | assimp | 210 | 30.856 | 30.424 | −1.40% | Passed | | cxxopts | 5 | 4.455 | 4.668 | **+4.79%** | Passed | | box2d | 46 | 2.110 | 1.484 | −29.65% | Passed | | symengine | 75 | 17.358 | 16.327 | −5.94% | Passed | | tinyspline | 19 | 1.704 | 1.668 | −2.10% | Passed | | oatpp | 155 | 24.177 | 17.486 | −27.68% | Passed | | libsoundio | 18 | 1.432 | 1.468 | **+2.45%** | Passed | | simbody | 454 | 303.722 | 308.718 | **+1.64%** | Passed | | duckdb | 773 | 111.433 | 99.677 | - | Both failed | | fmt | 24 | 24.922 | 23.933 | −3.97% | Passed | | re2 | 53 | 9.084 | 13.117 | **+44.40%** | Passed | | harfbuzz | 11 | 7.479 | 7.407 | - | Both failed | | capnproto | 145 | 46.660 | 46.860 | - | Both failed | | hidapi | 2 | 0.308 | 0.307 | −0.37% | Passed | | open62541 | 127 | 31.529 | 31.635 | **+0.34%** | Passed | | z3 | 1093 | 811.159 | 799.042 | - | Both failed | | flatbuffers | 59 | 56.393 | 50.687 | −10.12% | Passed | | libzmq | 268 | 11.448 | 11.920 | **+4.13%** | Passed | | unicorn | 106 | 29.931 | 29.298 | −2.12% | Passed | | - | - | 3359.256 | 3329.098 | −0.90% | 17 faster, 10 slower | Although 10 of the projects were slower, several are very short-running projects where the absolute differences are only a fraction of a second. So IMO the differences are just measurement noise. By looking at the stats it does get improvement :) CC @vbvictor https://github.com/llvm/llvm-project/pull/243430 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
