The following HelloWorld app was used as benchmark:
data HelloWorld = HelloWorld
mkYesod "HelloWorld" [parseRoutes|
/ HomeR GET
|]
instance Yesod HelloWorld where
-- makeSessionBackend = const $ return Nothing
getHomeR = return . RepPlain . toContent $ "Hello World!"
main :: IO ()
main = warp 8080 HelloWorld
The benchmark was tested with httperf under the following
environments:
[vanilla-nosession] Released yesod-core 1.1.1.1, but without sessions.
[vanilla-session] Released yesod-core 1.1.1.1 (with sessions).
[faster-session-1] With patch
|
||
|---|---|---|
| .. | ||
| bench | ||
| static | ||
| test | ||
| Yesod | ||
| .gitignore | ||
| bench.sh | ||
| helloworld.hs | ||
| LICENSE | ||
| README | ||
| Setup.lhs | ||
| test.hs | ||
| widget-benchmark.hs | ||
| yesod-core.cabal | ||
Learn more at http://docs.yesodweb.com/