aboutsummaryrefslogtreecommitdiff
path: root/utils/benchmark/README.rst
diff options
context:
space:
mode:
Diffstat (limited to 'utils/benchmark/README.rst')
-rw-r--r--utils/benchmark/README.rst22
1 files changed, 22 insertions, 0 deletions
diff --git a/utils/benchmark/README.rst b/utils/benchmark/README.rst
new file mode 100644
index 0000000..652b274
--- /dev/null
+++ b/utils/benchmark/README.rst
@@ -0,0 +1,22 @@
+Basic benchmarking of parsing speed with pycparser.
+
+The ``inputs`` directory contains preprocessed files taken from open source
+projects.
+
+``redis.c.pp`` taken from Redis. Generated with:
+
+.. sourcecode::
+
+ gcc -nostdinc -D'__attribute__(x)=' -E -Isrc/ -Ideps/hiredis -Ideps/linenoise -I$HOME/eli/pycparser/utils/fake_libc_include src/redis-cli.c
+
+``tccgen.c.pp`` taken from TCC. Generated with:
+
+.. sourcecode::
+
+ gcc -nostdinc -D'__attribute__(x)=' -E -I. -I$HOME/eli/pycparser/utils/fake_libc_include tccgen.c
+
+``sqlite-btree.c.pp`` taken from SQLite. Generated with:
+
+.. sourcecode::
+
+ gcc -nostdinc -D'__attribute__(x)=' -E -I. -Isrc/ -I$HOME/eli/pycparser/utils/fake_libc_include src/btree.c