-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade servant/hasql benchmark with latest deps. (#4536)
* Bump to latest stable compiler, stackage resolver and libs. - Removed upper bounds for libs since the stackage resolver already takes care of pinning versions for us. - Removed extra-deps from stack config since resolver now contains `hasql-pool`. - Addressed `hasql` incompatibilities arising from upgrades to latest version. - Addressed runtime issue caused by `servant` upgrade changes where invalid parameters are now an error instead of no value. Added a datatype to handle invalid type coercion to 1 as the benchmark rules expect. - Error responses now describe the cause for a 500 to help debug issues. * Add `--pedantic` flag to catch even more warnings. * Re-use a single session across statements to regain some lost performance from `114b1b8`. - Switch to `unit` decoder for `updateSingle` statement as it now fails when being used in a session with other statements. We really dont need/use the result and as such can safely move to returning `()`. * Bump pool size to workaround `libpq` locking. - 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
1 parent
bbdb9b4
commit dd638ca
Showing
4 changed files
with
70 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
resolver: lts-6.5 | ||
resolver: lts-13.10 | ||
packages: | ||
- '.' | ||
|
||
extra-deps: | ||
- hasql-pool-0.4.1 | ||
|
||
flags: {} | ||
extra-package-dbs: [] |