Haskell database library benchmark
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
db-util
haskell
native
python
.gitignore
README.md
Setup.hs
build.sh
cabalconf
db-bench.cabal
sources.txt

README.md

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