on 0.3.2.7 help sign in
typeable/aeson/aeson.cabal
139 lines 4.0 kB history raw
1name: aeson
2version: 0.3.2.7
3license: BSD3
4license-file: LICENSE
5category: Text, Web, JSON
6copyright: Copyright 2011 MailRank, Inc.
7author: Bryan O'Sullivan <bos@mailrank.com>
8maintainer: Bryan O'Sullivan <bos@mailrank.com>
9stability: experimental
10tested-with: GHC == 6.12.3
11synopsis: Fast JSON parsing and encoding
12cabal-version: >= 1.8
13homepage: http://github.com/mailrank/aeson
14bug-reports: http://github.com/mailrank/aeson/issues
15build-type: Simple
16description:
17 A JSON parsing and encoding library optimized for ease of use
18 and high performance.
19 .
20 Parsing performance on a late 2010 MacBook Pro (2.66GHz Core i7),
21 for mostly-English tweets from Twitter's JSON search API:
22 .
23 * 0.8 KB, 32-bit GHC 6.12.3: 30538 msg\/sec (24.9 MB\/sec)
24 .
25 * 0.8 KB, 64-bit GHC 7.0.3: 31204 msg\/sec (25.4 MB\/sec)
26 .
27 * 6.4 KB, 32-bit GHC 6.12.3: 6731 msg\/sec (42.3 MB\/sec)
28 .
29 * 6.4 KB, 64-bit GHC 7.0.3: 6627 msg\/sec (41.7 MB\/sec)
30 .
31 * 11.8 KB, 32-bit GHC 6.12.3: 3751 msg\/sec (43.2 MB\/sec)
32 .
33 * 11.8 KB, 64-bit GHC 7.0.3: 3381 msg\/sec (38.9 MB\/sec)
34 .
35 * 31.2 KB, 32-bit GHC 6.12.3: 1306 msg\/sec (39.8 MB\/sec)
36 .
37 * 31.2 KB, 64-bit GHC 7.0.3: 1132 msg\/sec (34.5 MB\/sec)
38 .
39 * 61.5 KB, 32-bit GHC 6.12.3: 616 msg\/sec (37.0 MB\/sec)
40 .
41 * 61.5 KB, 64-bit GHC 7.0.3: 534 msg\/sec (32.1 MB\/sec)
42 .
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.
46 .
47 * 14.6 KB, 32-bit GHC 6.12.3: 2315 msg\/sec (33.1 MB\/sec)
48 .
49 * 14.6 KB, 64-bit GHC 7.0.3: 1986 msg\/sec (28.4 MB\/sec)
50 .
51 * 44.1 KB, 32-bit GHC 6.12.3: 712 msg\/sec (30.7 MB\/sec)
52 .
53 * 44.1 KB, 64-bit GHC 7.0.3: 634 msg\/sec (27.3 MB\/sec)
54 .
55 * 82.9 KB, 32-bit GHC 6.12.3: 377 msg\/sec (30.5 MB\/sec)
56 .
57 * 82.9 KB, 64-bit GHC 7.0.3: 332 msg\/sec (26.9 MB\/sec)
58 .
59 Encoding performance on the same machine and data:
60 .
61 * English, 854 bytes: 43439 msg\/sec (35.4 MB/sec)
62 .
63 * English, 6.4 KB: 7127 msg\/sec (44.8 MB/sec)
64 .
65 * Engish, 61.5 KB: 765 msg\/sec (46.0 MB/sec)
66 .
67 * Japanese, 14.6 KB: 4727 msg\/sec (67.5 MB/sec)
68 .
69 * Japanese, 44.1 KB: 1505 msg\/sec (64.8 MB/sec)
70 .
71 (A note on naming: in Greek mythology, Aeson was the father of Jason.)
73extra-source-files:
74 README.markdown
75 benchmarks/AesonEncode.hs
76 benchmarks/AesonParse.hs
77 benchmarks/JsonParse.hs
78 benchmarks/Makefile
79 benchmarks/ReadFile.hs
80 benchmarks/parse.py
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
92 tests/Makefile
93 tests/Properties.hs
95flag developer
96 description: operate in developer mode
97 default: False
99library
100 exposed-modules:
101 Data.Aeson
102 Data.Aeson.Encode
103 Data.Aeson.Generic
104 Data.Aeson.Parser
105 Data.Aeson.Types
107 other-modules:
108 Data.Aeson.Functions
110 build-depends:
111 attoparsec >= 0.8.6.1,
112 base == 4.*,
113 blaze-builder >= 0.2.1.4,
114 blaze-textual,
115 bytestring,
116 containers,
117 deepseq,
118 hashable >= 1.1.2.0,
119 mtl,
120 old-locale,
121 syb,
122 text >= 0.11.0.2,
123 time,
124 unordered-containers >= 0.1.2.0,
125 vector >= 0.7
127 if flag(developer)
128 ghc-options: -Werror
129 ghc-prof-options: -auto-all
131 ghc-options: -Wall
133source-repository head
134 type: git
135 location: http://github.com/mailrank/aeson
137source-repository head
138 type: mercurial
139 location: http://bitbucket.org/bos/aeson