Skip to content

Commit

Permalink
Bump pool size to workaround libpq locking.
Browse files Browse the repository at this point in the history
- Pool size now matches the max concurrency of requests used by the benchmark. Many other framworks appear to do similar matching.
- Idea inspired by: haskell-servant/servant#651 (comment)
- This finally restores all performance regression caused by `114b1b8`. Additionally we now finally blow past the performance of master at `6250eb8`.
  • Loading branch information
naushadh committed Mar 10, 2019
1 parent cdfb661 commit 33e17a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frameworks/Haskell/servant/src/ServantBench.hs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ run port dbSettings = do
Warp.run port $ serve api $ server pool gen
where
halfSecond = 0.5
settings = (30, halfSecond, dbSettings)
settings = (512, halfSecond, dbSettings)

newtype QueryId = QueryId { unQueryId :: Int }
instance FromHttpApiData QueryId where
Expand Down

0 comments on commit 33e17a9

Please sign in to comment.