[all-commits] [llvm/llvm-project] be895d: [pseudo] Add benchmarks for pseudoparser.
Haojian Wu via All-commits
all-commits at lists.llvm.org
Tue May 10 05:16:39 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: be895d5768d5e12581f158b9522b167c833796d8
https://github.com/llvm/llvm-project/commit/be895d5768d5e12581f158b9522b167c833796d8
Author: Haojian Wu <hokein.wu at gmail.com>
Date: 2022-05-10 (Tue, 10 May 2022)
Changed paths:
M clang-tools-extra/pseudo/CMakeLists.txt
A clang-tools-extra/pseudo/benchmarks/Benchmark.cpp
A clang-tools-extra/pseudo/benchmarks/CMakeLists.txt
Log Message:
-----------
[pseudo] Add benchmarks for pseudoparser.
Running on SemaDecl.cpp with the cxx.bnf grammar:
```
--------------------------------------------------------------
Benchmark Time CPU Iterations
--------------------------------------------------------------
runParseBNFGrammar 649389 ns 649365 ns 1013
runBuildLR 34591903 ns 34591380 ns 20
runPreprocessTokens 11418744 ns 11418703 ns 61 bytes_per_second=63.8971M/s
runGLRParse 282996863 ns 282988726 ns 2 bytes_per_second=2.57827M/s
runParseOverall 294969719 ns 294951870 ns 2 bytes_per_second=2.4737M/s
```
Differential Revision: https://reviews.llvm.org/D125226
More information about the All-commits
mailing list