nurpax / db-bench

Haskell database library benchmark

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Haskell database benchmark

A simple benchmark for comparing Haskell *-simple database binding libraries (e.g. sqlite-simple) to native C sqlite and Python sqlite. For the purpose of this benchmark, the C implementation of the same benchmark is considered the fastest possible, which gives us a good comparison point for Haskell performance tuning.

See results tracker.

Running the benchmark

Compile:

cd db-bench
cabal-dev configure
cabal-dev install
# Create test data for sqlite:
./cabal-dev/bin/db-util --output-db=test.db --db=sqlite
# Similarly for other db's ..., choose --db=mysql or --db=psql

Run the benchmark:

./cabal-dev/bin/bench

About

Haskell database library benchmark


Languages

Language:Haskell 81.5%Language:C 8.8%Language:Python 6.2%Language:Shell 2.7%Language:Makefile 0.9%