• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

inputs/23-Nov-2023-26,01420,446

README.rstD23-Nov-2023706 2312

benchmark-parse.pyD23-Nov-20231.7 KiB5938

README.rst

1Basic benchmarking of parsing speed with pycparser.
2
3The ``inputs`` directory contains preprocessed files taken from open source
4projects.
5
6``redis.c.pp`` taken from Redis. Generated with:
7
8.. sourcecode::
9
10   gcc -nostdinc -D'__attribute__(x)=' -E -Isrc/ -Ideps/hiredis -Ideps/linenoise -I$HOME/eli/pycparser/utils/fake_libc_include src/redis-cli.c
11
12``tccgen.c.pp`` taken from TCC. Generated with:
13
14.. sourcecode::
15
16   gcc -nostdinc -D'__attribute__(x)=' -E -I.  -I$HOME/eli/pycparser/utils/fake_libc_include tccgen.c
17
18``sqlite-btree.c.pp`` taken from SQLite. Generated with:
19
20.. sourcecode::
21
22   gcc -nostdinc -D'__attribute__(x)=' -E -I. -Isrc/ -I$HOME/eli/pycparser/utils/fake_libc_include src/btree.c
23