1{-# LANGUAGE OverloadedStrings #-}
3module Warp (benchmarks) where
5import Criterion.Main (bench, bgroup, nf)
6import Criterion.Types (Benchmark)
7import Data.ByteString (ByteString)
8import Network.Wai.Handler.Warp.ReadInt (readInt)
9import qualified Data.Attoparsec.ByteString.Char8 as B
11benchmarks :: Benchmark
12benchmarks = bgroup "warp" [
14 bench "warp" $ nf (readInt :: ByteString -> Int) "31337"
15 , bench "atto" $ nf (B.parse (B.decimal :: B.Parser Int)) "31337"
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list