Skip to content
benchmark result of haskell lightweight web frameworks
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
results/1
scripts
src
.gitignore
LICENSE
README.md
Setup.hs
apiary-benchmark.cabal

README.md

apiary-benchmark

benchmark result of haskell lightweight web frameworks.

Frameworks

How to run

cabal update
cabal sandbox init
cabal get apiary-1.4.3 Spock-0.7.9.0 scotty-0.9.1 yesod-core-1.4.10 wai-routes-0.7.0
cabal install -fapiary -fSpock -fyesod-core -fscotty -fwai-routes --only-dependencies
./scripts/all.sh apiary-1.4.3 Spock-0.7.9.0 scotty-0.9.1 yesod-core-1.4.10 wai-routes-0.7.0

Benchmarks

  1. HELLO (no capture)
  2. PARAM (capture route parameter)
  3. DEEP (deep and many routes)
  4. AFTER_DEEP (after DEEP route)

Machines

tama

% uname -a
Linux tama 3.17.8-gentoo-r1 #28 SMP Sat Mar 21 20:13:44 JST 2015 x86_64 Intel(R) Core(TM) i3-2120T CPU @ 2.60GHz GenuineIntel GNU/Linux
% cat /proc/cpuinfo | grep 'model name'
model name	: Intel(R) Core(TM) i3-2120T CPU @ 2.60GHz
model name	: Intel(R) Core(TM) i3-2120T CPU @ 2.60GHz
model name	: Intel(R) Core(TM) i3-2120T CPU @ 2.60GHz
model name	: Intel(R) Core(TM) i3-2120T CPU @ 2.60GHz
% cat /proc/meminfo | grep MemTotal
MemTotal:       16354960 kB

Results

single thread

result

machine ghc framework HELLO PARAM DEEP AFTER_DEEP
tama 7.8.3 apiary-1.4.3 34672.67 27446.35 32039.40 36325.20
tama 7.8.3 wai-routes-0.7.0 37602.15 22660.11 31865.25 39613.96
tama 7.8.3 Spock-0.7.9.0 28321.23 23934.21 26849.23 29205.54
tama 7.8.3 yesod-core-1.4.10 24462.33 21083.65 23688.00 28186.62
tama 7.8.3 scotty-0.9.1 28552.41 18326.25 2638.84 9818.50

References

  1. agrafix/Spock-scotty-benchmark
You can’t perform that action at this time.