Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 138 lines (126 sloc) 3.793 kb
924ea54 Bryan O'Sullivan Initial commit
authored
1 name: aeson
86433ea Bryan O'Sullivan Bump version
authored
2 version: 0.3.2.4
924ea54 Bryan O'Sullivan Initial commit
authored
3 license: BSD3
4 license-file: LICENSE
5 category: Text, Web, JSON
6 copyright: Copyright 2011 MailRank, Inc.
7 author: Bryan O'Sullivan <bos@mailrank.com>
8 maintainer: Bryan O'Sullivan <bos@mailrank.com>
9 stability: experimental
10 tested-with: GHC == 6.12.3
11 synopsis: Fast JSON parsing and generation
12 cabal-version: >= 1.8
13 homepage: http://github.com/mailrank/aeson
14 bug-reports: http://github.com/mailrank/aeson/issues
15 build-type: Simple
16 description:
e3982d3 Bryan O'Sullivan More docs
authored
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
cb78de0 Bryan O'Sullivan Update benchmark results
authored
21 (2.66GHz Core i7), for mostly-English tweets from Twitter's JSON
22 search API:
e3982d3 Bryan O'Sullivan More docs
authored
23 .
636dd41 Bryan O'Sullivan Bump version, and include happy new performance numbers.
authored
24 * English, 854 bytes: 29029 msg\/sec (23.6 MB/sec)
e3982d3 Bryan O'Sullivan More docs
authored
25 .
636dd41 Bryan O'Sullivan Bump version, and include happy new performance numbers.
authored
26 * English, 6.4 KB: 6407 msg\/sec (40.3 MB/sec)
e3982d3 Bryan O'Sullivan More docs
authored
27 .
636dd41 Bryan O'Sullivan Bump version, and include happy new performance numbers.
authored
28 * English, 31.2 KB: 1265 msg\/sec (38.8 MB/sec)
e3982d3 Bryan O'Sullivan More docs
authored
29 .
636dd41 Bryan O'Sullivan Bump version, and include happy new performance numbers.
authored
30 * English, 61.5 KB: 585 msg\/sec (35.2 MB/sec)
cb78de0 Bryan O'Sullivan Update benchmark results
authored
31 .
32 Handling heavily-escaped text is a little more work. Here is
33 parsing performance with Japanese tweets, where much of the text
34 is entirely Unicode-escaped:
35 .
636dd41 Bryan O'Sullivan Bump version, and include happy new performance numbers.
authored
36 * Japanese, 14.6 KB: 2227 msg\/sec (31.9 MB/sec)
cb78de0 Bryan O'Sullivan Update benchmark results
authored
37 .
636dd41 Bryan O'Sullivan Bump version, and include happy new performance numbers.
authored
38 * Japanese, 44.1 KB: 671 msg\/sec (29.6 MB/sec)
e3982d3 Bryan O'Sullivan More docs
authored
39 .
40 Encoding performance on the same machine and data:
41 .
636dd41 Bryan O'Sullivan Bump version, and include happy new performance numbers.
authored
42 * English, 854 bytes: 43439 msg\/sec (35.4 MB/sec)
e3982d3 Bryan O'Sullivan More docs
authored
43 .
636dd41 Bryan O'Sullivan Bump version, and include happy new performance numbers.
authored
44 * English, 6.4 KB: 7127 msg\/sec (44.8 MB/sec)
e3982d3 Bryan O'Sullivan More docs
authored
45 .
636dd41 Bryan O'Sullivan Bump version, and include happy new performance numbers.
authored
46 * Engish, 61.5 KB: 765 msg\/sec (46.0 MB/sec)
e3982d3 Bryan O'Sullivan More docs
authored
47 .
636dd41 Bryan O'Sullivan Bump version, and include happy new performance numbers.
authored
48 * Japanese, 14.6 KB: 4727 msg\/sec (67.5 MB/sec)
49 .
50 * Japanese, 44.1 KB: 1505 msg\/sec (64.8 MB/sec)
51 .
52 With GHC 7.0.2, the story is mixed: parsing is 20-40% slower than
53 GHC 6.12.3, while encoding performance ranges from about the same
54 to twice as fast (on numeric data).
e3982d3 Bryan O'Sullivan More docs
authored
55 .
56 (A note on naming: in Greek mythology, Aeson was the father of Jason.)
57
924ea54 Bryan O'Sullivan Initial commit
authored
58 extra-source-files:
59 README.markdown
bf72444 Bryan O'Sullivan Fix missed rename
authored
60 benchmarks/AesonEncode.hs
3568e5e Bryan O'Sullivan More benchmarkery: try out the json library.
authored
61 benchmarks/AesonParse.hs
62 benchmarks/JsonParse.hs
1dc9a1e Bryan O'Sullivan Add more benchmark data
authored
63 benchmarks/Makefile
3568e5e Bryan O'Sullivan More benchmarkery: try out the json library.
authored
64 benchmarks/ReadFile.hs
1dc9a1e Bryan O'Sullivan Add more benchmark data
authored
65 benchmarks/parse.py
66 benchmarks/json-data/example.json
67 benchmarks/json-data/integers.json
68 benchmarks/json-data/jp10.json
69 benchmarks/json-data/jp20.json
70 benchmarks/json-data/jp50.json
71 benchmarks/json-data/jp100.json
72 benchmarks/json-data/numbers.json
73 benchmarks/json-data/twitter1.json
74 benchmarks/json-data/twitter10.json
75 benchmarks/json-data/twitter20.json
76 benchmarks/json-data/twitter50.json
77 benchmarks/json-data/twitter100.json
e9316c5 Bryan O'Sullivan Make sure the tests are distributed with the source
authored
78 tests/Makefile
79 tests/Properties.hs
924ea54 Bryan O'Sullivan Initial commit
authored
80
81 flag developer
82 description: operate in developer mode
83 default: False
84
85 library
86 exposed-modules:
87 Data.Aeson
00dd59d Bryan O'Sullivan Support JSON encoding
authored
88 Data.Aeson.Encode
a1ee5a5 Bryan O'Sullivan Partially implement generic JSON support.
authored
89 Data.Aeson.Generic
924ea54 Bryan O'Sullivan Initial commit
authored
90 Data.Aeson.Parser
91 Data.Aeson.Types
92
a1ee5a5 Bryan O'Sullivan Partially implement generic JSON support.
authored
93 other-modules:
5cf7460 Bryan O'Sullivan Improve the performance of Double rendering by about 23%
authored
94 Data.Aeson.Encode.Double
95 Data.Aeson.Encode.Int
ec18bcb Bryan O'Sullivan Improve encoding performance for integers by 3x
authored
96 Data.Aeson.Encode.Number
a1ee5a5 Bryan O'Sullivan Partially implement generic JSON support.
authored
97 Data.Aeson.Functions
98
924ea54 Bryan O'Sullivan Initial commit
authored
99 build-depends:
68ff8de Bryan O'Sullivan Bump dependency on attoparsec.
authored
100 attoparsec >= 0.8.5.3,
924ea54 Bryan O'Sullivan Initial commit
authored
101 base == 4.*,
00dd59d Bryan O'Sullivan Support JSON encoding
authored
102 blaze-builder >= 0.2.1.4,
924ea54 Bryan O'Sullivan Initial commit
authored
103 bytestring,
e3982d3 Bryan O'Sullivan More docs
authored
104 containers,
4b9b9e0 Bryan O'Sullivan Add an NFData instance for Value
authored
105 deepseq,
ec18bcb Bryan O'Sullivan Improve encoding performance for integers by 3x
authored
106 ghc-prim,
f50f9b7 Bryan O'Sullivan Add support for HashMap from the unordered-containers package.
authored
107 hashable,
ec18bcb Bryan O'Sullivan Improve encoding performance for integers by 3x
authored
108 integer-gmp,
375627d Bryan O'Sullivan Switch from monads-fd to mtl, and bump version
authored
109 mtl,
924ea54 Bryan O'Sullivan Initial commit
authored
110 old-locale,
a1ee5a5 Bryan O'Sullivan Partially implement generic JSON support.
authored
111 syb,
d05091c Bryan O'Sullivan Make developer flag control -auto-all.
authored
112 text >= 0.11.0.2,
924ea54 Bryan O'Sullivan Initial commit
authored
113 time,
3032d03 Bryan O'Sullivan Update dependency on unordered-containers
authored
114 unordered-containers >= 0.1.2.0,
924ea54 Bryan O'Sullivan Initial commit
authored
115 vector >= 0.7
116
117 if flag(developer)
118 ghc-options: -Werror
d05091c Bryan O'Sullivan Make developer flag control -auto-all.
authored
119 ghc-prof-options: -auto-all
924ea54 Bryan O'Sullivan Initial commit
authored
120
121 ghc-options: -Wall
122
ec18bcb Bryan O'Sullivan Improve encoding performance for integers by 3x
authored
123 if impl(ghc >= 6.11)
124 cpp-options: -DINTEGER_GMP
125 build-depends: integer-gmp >= 0.2 && < 0.3
126
127 if impl(ghc >= 6.9) && impl(ghc < 6.11)
128 cpp-options: -DINTEGER_GMP
129 build-depends: integer >= 0.1 && < 0.2
130
924ea54 Bryan O'Sullivan Initial commit
authored
131 source-repository head
132 type: git
133 location: http://github.com/mailrank/aeson
3568e5e Bryan O'Sullivan More benchmarkery: try out the json library.
authored
134
135 source-repository head
136 type: mercurial
137 location: http://bitbucket.org/bos/aeson
Something went wrong with that request. Please try again.