Skip to content

About

SQL Parser for C++. Building C++ object structure from SQL statements.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

Benchmarking ANTLRv4 parser for MySQL

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

Setup

  • 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

About

SQL Parser for C++. Building C++ object structure from SQL statements.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages