on master help sign in
More docs
commited58ea541ca9556b1ad787d1860beff54efff5af authorBryan O'Sullivan <bos@serpentine.com> dateTue 25 Jan 2011, 23:33 (16 years ago) parenta9bfcd3
3 files changed+30−3
Data/Aeson.hs+2 aeson.cabal+27−2 benchmarks/ParseFile.hs+1−1
Data/Aeson.hs+2
@@ -6,6 +6,8 @@
66-- Portability: portable
77--
88-- Types and functions for working efficiently with JSON data.
9+--
10+-- (A note on naming: in Greek mythology, Aeson was the father of Jason.)
911
1012module Data.Aeson
1113 (
aeson.cabal+27−2
@@ -14,7 +14,32 @@ homepage: http://github.com/mailrank/aeson
1414bug-reports: http://github.com/mailrank/aeson/issues
1515build-type: Simple
1616description:
17− A fast JSON parsing and generation library.
17+ A JSON parsing and generation library optimized for ease of use
18+ and high performance.
19+ .
20+ Parsing performance with GHC 6.12.3 on a late 2010 MacBook Pro
21+ (2.66GHz Core i7), for different message sizes:
22+ .
23+ * 854 bytes: 15308 msg\/sec (12.5 MB/sec)
24+ .
25+ * 6.4 KB: 2807 msg\/sec (17.6 MB/sec)
26+ .
27+ * 31.2 KB: 493 msg\/sec (15.0 MB/sec)
28+ .
29+ * 61.5 KB: 236 msg\/sec (14.2 MB/sec)
30+ .
31+ Encoding performance on the same machine and data:
32+ .
33+ * 854 bytes: 72407 msg\/sec (59 MB/sec)
34+ .
35+ * 6.4 KB: 2098 msg\/sec (13.2 MB/sec)
36+ .
37+ * 31.2 KB: 422 msg\/sec (12.9 MB/sec)
38+ .
39+ * 61.5 KB: 219 msg\/sec (13.2 MB/sec)
40+ .
41+ (A note on naming: in Greek mythology, Aeson was the father of Jason.)
42+
1843extra-source-files:
1944 README.markdown
2045
@@ -34,7 +59,7 @@ library
3459 base == 4.*,
3560 blaze-builder >= 0.2.1.4,
3661 bytestring,
37− containers == 0.3.*,
62+ containers,
3863 deepseq,
3964 old-locale,
4065 text >= 0.11.0.2,
benchmarks/ParseFile.hs+1−1
@@ -21,7 +21,7 @@ main = do
2121 | good+bad >= count = return (good, bad)
2222 | otherwise = do
2323 hSeek h AbsoluteSeek 0
24− let refill = B.hGet h 1024
24+ let refill = B.hGet h 16384
2525 result <- parseWith refill json =<< refill
2626 case result of
2727 Done _ r -> loop (good+1) bad