Skip to content

Commit

Permalink
Add benchmark for streaming decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
tibbe committed Feb 25, 2013
1 parent ead0ad2 commit 1621a58
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions benchmarks/Benchmarks.hs
Expand Up @@ -119,6 +119,7 @@ main = do
]
, bgroup "comparison"
[ bench "cassava" $ nf idDecode csvData
, bench "cassava/streaming" $ nf idDecodeS csvData
, bench "lazy-csv" $ nf LazyCsv.parseCSV csvData
]
]
Expand All @@ -134,3 +135,6 @@ main = do

idDecodeN :: BL.ByteString -> Either String (Header, Vector (BSHashMap B.ByteString))
idDecodeN = decodeByName

idDecodeS :: BL.ByteString -> Streaming.Records (Vector B.ByteString)
idDecodeS = Streaming.decode False

0 comments on commit 1621a58

Please sign in to comment.