Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

More docs

  • Loading branch information...
commit e3982d3956e6059c63f9222c8b61b61b854a1fad 1 parent 0ee20a8
Bryan O'Sullivan authored
Showing with 30 additions and 3 deletions.
  1. +2 −0  Data/Aeson.hs
  2. +27 −2 aeson.cabal
  3. +1 −1  benchmarks/ParseFile.hs
2  Data/Aeson.hs
View
@@ -6,6 +6,8 @@
-- Portability: portable
--
-- Types and functions for working efficiently with JSON data.
+--
+-- (A note on naming: in Greek mythology, Aeson was the father of Jason.)
module Data.Aeson
(
29 aeson.cabal
View
@@ -14,7 +14,32 @@ homepage: http://github.com/mailrank/aeson
bug-reports: http://github.com/mailrank/aeson/issues
build-type: Simple
description:
- A fast JSON parsing and generation library.
+ A JSON parsing and generation library optimized for ease of use
+ and high performance.
+ .
+ Parsing performance with GHC 6.12.3 on a late 2010 MacBook Pro
+ (2.66GHz Core i7), for different message sizes:
+ .
+ * 854 bytes: 15308 msg\/sec (12.5 MB/sec)
+ .
+ * 6.4 KB: 2807 msg\/sec (17.6 MB/sec)
+ .
+ * 31.2 KB: 493 msg\/sec (15.0 MB/sec)
+ .
+ * 61.5 KB: 236 msg\/sec (14.2 MB/sec)
+ .
+ Encoding performance on the same machine and data:
+ .
+ * 854 bytes: 72407 msg\/sec (59 MB/sec)
+ .
+ * 6.4 KB: 2098 msg\/sec (13.2 MB/sec)
+ .
+ * 31.2 KB: 422 msg\/sec (12.9 MB/sec)
+ .
+ * 61.5 KB: 219 msg\/sec (13.2 MB/sec)
+ .
+ (A note on naming: in Greek mythology, Aeson was the father of Jason.)
+
extra-source-files:
README.markdown
@@ -34,7 +59,7 @@ library
base == 4.*,
blaze-builder >= 0.2.1.4,
bytestring,
- containers == 0.3.*,
+ containers,
deepseq,
old-locale,
text >= 0.11.0.2,
2  benchmarks/ParseFile.hs
View
@@ -21,7 +21,7 @@ main = do
| good+bad >= count = return (good, bad)
| otherwise = do
hSeek h AbsoluteSeek 0
- let refill = B.hGet h 1024
+ let refill = B.hGet h 16384
result <- parseWith refill json =<< refill
case result of
Done _ r -> loop (good+1) bad
Please sign in to comment.
Something went wrong with that request. Please try again.