Web graphics speed haskell, GHCi vs Compiled

Today I compared benchmarking a bit on my local machine to compare the plain text speed of various Haskell web frameworks, and I noticed something strange. Almost all the frameworks I tested performed better when they started from GHCi compared to the compiled version. here are my results

+------------------------------------
|framework| GHCi rpm   | compiled rpm 
+---------+------------+-------------
|snap     | 8000       | 150
+---------+------------+-------------
|yesod    | 6000       | 2500
+---------+------------+-------------
|scotty   | 22000      | 9500
+---------+------------+-------------
|servant  | 17000      | 8500
+---------+------------+-------------
|spock    | 3300       | 2700
+---------+------------+-------------

I know that these numbers do not reflect the speed of these frameworks, as they are poorly configured or optimized, but my question is why these systems work better when starting GHCi. Am I doing something wrong?

to create them i just run stack build

+4
source share
1 answer

, Harendra Kumar GHC. ghc-dev. . Harendra:

. runghc , ghc , ghc - . .

, ghc .

+3

Source: https://habr.com/ru/post/1685942/


All Articles