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
|
||
|---|---|---|
| .. | ||
| Internal | ||
| Content.hs | ||
| Core.hs | ||
| Dispatch.hs | ||
| Handler.hs | ||
| Internal.hs | ||
| Message.hs | ||
| Request.hs | ||
| Widget.hs | ||