[PATCH] D125226: [pseudo] Add benchmarks for pseudoparser.

Haojian Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 9 06:07:10 PDT 2022


hokein created this revision.
hokein added a reviewer: sammccall.
Herald added a subscriber: mgorny.
Herald added a project: All.
hokein requested review of this revision.
Herald added a subscriber: alextsao1999.
Herald added a project: clang-tools-extra.

Running on SemaDecl.cpp with the cxx.bnf grammar:

  ----------------------------------------------------------
  Benchmark                Time             CPU   Iterations
  ----------------------------------------------------------
  runParseGrammar     643714 ns       643704 ns         1025
  runLRBuild        34511806 ns     34510526 ns           20
  runGLRParse      296809984 ns    296808745 ns            2 bytes_per_second=2.45822M/s


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D125226

Files:
  clang-tools-extra/pseudo/CMakeLists.txt
  clang-tools-extra/pseudo/benchmarks/Benchmark.cpp
  clang-tools-extra/pseudo/benchmarks/CMakeLists.txt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125226.428056.patch
Type: text/x-patch
Size: 4467 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220509/9e98d5d7/attachment-0001.bin>


More information about the cfe-commits mailing list