5category: Text, Web, JSON
6copyright: Copyright 2011 MailRank, Inc.
7author: Bryan O'Sullivan <bos@mailrank.com>
8maintainer: Bryan O'Sullivan <bos@mailrank.com>
10tested-with: GHC == 6.12.3
11synopsis: Fast JSON parsing and encoding
13homepage: http://github.com/mailrank/aeson
14bug-reports: http://github.com/mailrank/aeson/issues
17 A JSON parsing and encoding library optimized for ease of use
20 Parsing performance on a late 2010 MacBook Pro (2.66GHz Core i7),
21 for mostly-English tweets from Twitter's JSON search API:
23 * 0.8 KB, 32-bit GHC 6.12.3: 29945 msg\/sec (24.4 MB\/sec)
25 * 0.8 KB, 64-bit GHC 7.0.3: 29280 msg\/sec (23.8 MB\/sec)
27 * 6.4 KB, 32-bit GHC 6.12.3: 6684 msg\/sec (42.0 MB\/sec)
29 * 6.4 KB, 64-bit GHC 7.0.3: 5893 msg\/sec (37.1 MB\/sec)
31 * 11.8 KB, 32-bit GHC 6.12.3: 3610 msg\/sec (41.5 MB\/sec)
33 * 11.8 KB, 64-bit GHC 7.0.3: 3059 msg\/sec (35.2 MB\/sec)
35 * 31.2 KB, 32-bit GHC 6.12.3: 1306 msg\/sec (39.8 MB\/sec)
37 * 31.2 KB, 64-bit GHC 7.0.3: 1050 msg\/sec (32.0 MB\/sec)
39 * 61.5 KB, 32-bit GHC 6.12.3: 594 msg\/sec (35.7 MB\/sec)
41 * 61.5 KB, 64-bit GHC 7.0.3: 505 msg\/sec (30.3 MB\/sec)
43 Handling heavily-escaped text is a little more work. Here is
44 parsing performance with Japanese tweets, where much of the text
45 is entirely Unicode-escaped.
47 * 14.6 KB, 32-bit GHC 6.12.3: 2257 msg\/sec (32.2 MB\/sec)
49 * 14.6 KB, 64-bit GHC 7.0.3: 1931 msg\/sec (27.6 MB\/sec)
51 * 44.1 KB, 32-bit GHC 6.12.3: 697 msg\/sec (30.0 MB\/sec)
53 * 44.1 KB, 64-bit GHC 7.0.3: 611 msg\/sec (26.3 MB\/sec)
55 * 82.9 KB, 32-bit GHC 6.12.3: 368 msg\/sec (29.8 MB\/sec)
57 * 82.9 KB, 64-bit GHC 7.0.3: 322 msg\/sec (26.0 MB\/sec)
59 Encoding performance on the same machine and data:
61 * English, 854 bytes: 43439 msg\/sec (35.4 MB/sec)
63 * English, 6.4 KB: 7127 msg\/sec (44.8 MB/sec)
65 * Engish, 61.5 KB: 765 msg\/sec (46.0 MB/sec)
67 * Japanese, 14.6 KB: 4727 msg\/sec (67.5 MB/sec)
69 * Japanese, 44.1 KB: 1505 msg\/sec (64.8 MB/sec)
71 (A note on naming: in Greek mythology, Aeson was the father of Jason.)
75 benchmarks/AesonEncode.hs
76 benchmarks/AesonParse.hs
77 benchmarks/JsonParse.hs
79 benchmarks/ReadFile.hs
81 benchmarks/json-data/example.json
82 benchmarks/json-data/integers.json
83 benchmarks/json-data/jp10.json
84 benchmarks/json-data/jp50.json
85 benchmarks/json-data/jp100.json
86 benchmarks/json-data/numbers.json
87 benchmarks/json-data/twitter1.json
88 benchmarks/json-data/twitter10.json
89 benchmarks/json-data/twitter20.json
90 benchmarks/json-data/twitter50.json
91 benchmarks/json-data/twitter100.json
96 description: operate in developer mode
111 attoparsec >= 0.8.6.1,
113 blaze-builder >= 0.2.1.4,
124 unordered-containers >= 0.1.2.0,
129 ghc-prof-options: -auto-all
133source-repository head
135 location: http://github.com/mailrank/aeson
137source-repository head
139 location: http://bitbucket.org/bos/aeson
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