Changes https://github.com/envoyproxy/sql-parser to measure the performance of an SQL parser generated using ANTLRv4.
Source grammar: https://github.com/antlr/grammars-v4/tree/master/sql/mysql/Positive-Technologies
-
Install google benchmark by building from source or on ubuntu one can run
apt install libbenchmark-dev. -
Generate the CPP parsers for the grammar:
cd language
java -jar ../antlr-4.7.1-complete.jar -Dlanguage=Cpp -o ../mysql/ -package parsers MySqlParser.g4 MySqlLexer.g4-
Run
make benchmark -
Run
make run_benchmarks