Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 161 lines (148 sloc) 4.505 kb
924ea54 @bos Initial commit
authored
1 name: aeson
2ed8fa0 @bos Bump version
authored
2 version: 0.3.2.12
924ea54 @bos 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
047ca3e @bos Update 32-bit GHC 6.12.3 performance
authored
11 synopsis: Fast JSON parsing and encoding
924ea54 @bos Initial commit
authored
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:
047ca3e @bos Update 32-bit GHC 6.12.3 performance
authored
17 A JSON parsing and encoding library optimized for ease of use
e3982d3 @bos More docs
authored
18 and high performance.
19 .
f70f80d @bos Update docs to refer to the double-conversion problems.
authored
20 /Note/: if you use GHCi or Template Haskell, please see the
21 @README@ file for important details about building this package,
22 and other packages that depend on it:
23 <https://github.com/mailrank/aeson#readme>
24 .
047ca3e @bos Update 32-bit GHC 6.12.3 performance
authored
25 Parsing performance on a late 2010 MacBook Pro (2.66GHz Core i7),
26 for mostly-English tweets from Twitter's JSON search API:
e3982d3 @bos More docs
authored
27 .
51699e5 @bos Update benchmark results.
authored
28 * 0.8 KB, 32-bit GHC 6.12.3: 30538 msg\/sec (24.9 MB\/sec)
e3982d3 @bos More docs
authored
29 .
51699e5 @bos Update benchmark results.
authored
30 * 0.8 KB, 64-bit GHC 7.0.3: 31204 msg\/sec (25.4 MB\/sec)
e3982d3 @bos More docs
authored
31 .
51699e5 @bos Update benchmark results.
authored
32 * 6.4 KB, 32-bit GHC 6.12.3: 6731 msg\/sec (42.3 MB\/sec)
e3982d3 @bos More docs
authored
33 .
51699e5 @bos Update benchmark results.
authored
34 * 6.4 KB, 64-bit GHC 7.0.3: 6627 msg\/sec (41.7 MB\/sec)
047ca3e @bos Update 32-bit GHC 6.12.3 performance
authored
35 .
51699e5 @bos Update benchmark results.
authored
36 * 11.8 KB, 32-bit GHC 6.12.3: 3751 msg\/sec (43.2 MB\/sec)
047ca3e @bos Update 32-bit GHC 6.12.3 performance
authored
37 .
51699e5 @bos Update benchmark results.
authored
38 * 11.8 KB, 64-bit GHC 7.0.3: 3381 msg\/sec (38.9 MB\/sec)
047ca3e @bos Update 32-bit GHC 6.12.3 performance
authored
39 .
40 * 31.2 KB, 32-bit GHC 6.12.3: 1306 msg\/sec (39.8 MB\/sec)
41 .
51699e5 @bos Update benchmark results.
authored
42 * 31.2 KB, 64-bit GHC 7.0.3: 1132 msg\/sec (34.5 MB\/sec)
047ca3e @bos Update 32-bit GHC 6.12.3 performance
authored
43 .
51699e5 @bos Update benchmark results.
authored
44 * 61.5 KB, 32-bit GHC 6.12.3: 616 msg\/sec (37.0 MB\/sec)
047ca3e @bos Update 32-bit GHC 6.12.3 performance
authored
45 .
51699e5 @bos Update benchmark results.
authored
46 * 61.5 KB, 64-bit GHC 7.0.3: 534 msg\/sec (32.1 MB\/sec)
cb78de0 @bos Update benchmark results
authored
47 .
48 Handling heavily-escaped text is a little more work. Here is
49 parsing performance with Japanese tweets, where much of the text
047ca3e @bos Update 32-bit GHC 6.12.3 performance
authored
50 is entirely Unicode-escaped.
cb78de0 @bos Update benchmark results
authored
51 .
51699e5 @bos Update benchmark results.
authored
52 * 14.6 KB, 32-bit GHC 6.12.3: 2315 msg\/sec (33.1 MB\/sec)
cb78de0 @bos Update benchmark results
authored
53 .
51699e5 @bos Update benchmark results.
authored
54 * 14.6 KB, 64-bit GHC 7.0.3: 1986 msg\/sec (28.4 MB\/sec)
047ca3e @bos Update 32-bit GHC 6.12.3 performance
authored
55 .
51699e5 @bos Update benchmark results.
authored
56 * 44.1 KB, 32-bit GHC 6.12.3: 712 msg\/sec (30.7 MB\/sec)
047ca3e @bos Update 32-bit GHC 6.12.3 performance
authored
57 .
51699e5 @bos Update benchmark results.
authored
58 * 44.1 KB, 64-bit GHC 7.0.3: 634 msg\/sec (27.3 MB\/sec)
047ca3e @bos Update 32-bit GHC 6.12.3 performance
authored
59 .
51699e5 @bos Update benchmark results.
authored
60 * 82.9 KB, 32-bit GHC 6.12.3: 377 msg\/sec (30.5 MB\/sec)
047ca3e @bos Update 32-bit GHC 6.12.3 performance
authored
61 .
51699e5 @bos Update benchmark results.
authored
62 * 82.9 KB, 64-bit GHC 7.0.3: 332 msg\/sec (26.9 MB\/sec)
e3982d3 @bos More docs
authored
63 .
64 Encoding performance on the same machine and data:
65 .
636dd41 @bos Bump version, and include happy new performance numbers.
authored
66 * English, 854 bytes: 43439 msg\/sec (35.4 MB/sec)
e3982d3 @bos More docs
authored
67 .
636dd41 @bos Bump version, and include happy new performance numbers.
authored
68 * English, 6.4 KB: 7127 msg\/sec (44.8 MB/sec)
e3982d3 @bos More docs
authored
69 .
636dd41 @bos Bump version, and include happy new performance numbers.
authored
70 * Engish, 61.5 KB: 765 msg\/sec (46.0 MB/sec)
e3982d3 @bos More docs
authored
71 .
636dd41 @bos Bump version, and include happy new performance numbers.
authored
72 * Japanese, 14.6 KB: 4727 msg\/sec (67.5 MB/sec)
73 .
74 * Japanese, 44.1 KB: 1505 msg\/sec (64.8 MB/sec)
75 .
e3982d3 @bos More docs
authored
76 (A note on naming: in Greek mythology, Aeson was the father of Jason.)
77
924ea54 @bos Initial commit
authored
78 extra-source-files:
79 README.markdown
bf72444 @bos Fix missed rename
authored
80 benchmarks/AesonEncode.hs
3568e5e @bos More benchmarkery: try out the json library.
authored
81 benchmarks/AesonParse.hs
82 benchmarks/JsonParse.hs
1dc9a1e @bos Add more benchmark data
authored
83 benchmarks/Makefile
3568e5e @bos More benchmarkery: try out the json library.
authored
84 benchmarks/ReadFile.hs
1dc9a1e @bos Add more benchmark data
authored
85 benchmarks/parse.py
86 benchmarks/json-data/example.json
87 benchmarks/json-data/integers.json
88 benchmarks/json-data/jp10.json
89 benchmarks/json-data/jp50.json
90 benchmarks/json-data/jp100.json
91 benchmarks/json-data/numbers.json
92 benchmarks/json-data/twitter1.json
93 benchmarks/json-data/twitter10.json
94 benchmarks/json-data/twitter20.json
95 benchmarks/json-data/twitter50.json
96 benchmarks/json-data/twitter100.json
e9316c5 @bos Make sure the tests are distributed with the source
authored
97 tests/Makefile
98 tests/Properties.hs
924ea54 @bos Initial commit
authored
99
100 flag developer
101 description: operate in developer mode
102 default: False
103
104 library
105 exposed-modules:
106 Data.Aeson
00dd59d @bos Support JSON encoding
authored
107 Data.Aeson.Encode
a1ee5a5 @bos Partially implement generic JSON support.
authored
108 Data.Aeson.Generic
924ea54 @bos Initial commit
authored
109 Data.Aeson.Parser
110 Data.Aeson.Types
111
a1ee5a5 @bos Partially implement generic JSON support.
authored
112 other-modules:
113 Data.Aeson.Functions
114
924ea54 @bos Initial commit
authored
115 build-depends:
54a3ae3 @bos Bump version, and performance-dependent version of attoparsec needed
authored
116 attoparsec >= 0.8.6.1,
924ea54 @bos Initial commit
authored
117 base == 4.*,
00dd59d @bos Support JSON encoding
authored
118 blaze-builder >= 0.2.1.4,
f70f80d @bos Update docs to refer to the double-conversion problems.
authored
119 blaze-textual >= 0.2.0.2,
924ea54 @bos Initial commit
authored
120 bytestring,
e3982d3 @bos More docs
authored
121 containers,
890de5f @Tarrasch Tighten package constraint for deepseq.
Tarrasch authored
122 deepseq < 1.2,
1cfcb82 @bos Bump dependency on hashable
authored
123 hashable >= 1.1.2.0,
375627d @bos Switch from monads-fd to mtl, and bump version
authored
124 mtl,
924ea54 @bos Initial commit
authored
125 old-locale,
a1ee5a5 @bos Partially implement generic JSON support.
authored
126 syb,
d05091c @bos Make developer flag control -auto-all.
authored
127 text >= 0.11.0.2,
924ea54 @bos Initial commit
authored
128 time,
495182f @bos Bump unordered-containers dependency
authored
129 unordered-containers >= 0.1.3.0,
924ea54 @bos Initial commit
authored
130 vector >= 0.7
131
132 if flag(developer)
133 ghc-options: -Werror
d05091c @bos Make developer flag control -auto-all.
authored
134 ghc-prof-options: -auto-all
924ea54 @bos Initial commit
authored
135
136 ghc-options: -Wall
137
2de6eec @bos Add test support.
authored
138 test-suite tests
139 type: exitcode-stdio-1.0
140 hs-source-dirs: tests
141 main-is: Properties.hs
142
143 ghc-options:
144 -Wall -threaded -rtsopts
145
146 build-depends:
147 aeson,
148 attoparsec,
149 base,
150 bytestring,
151 test-framework,
152 test-framework-quickcheck2
153
924ea54 @bos Initial commit
authored
154 source-repository head
155 type: git
156 location: http://github.com/mailrank/aeson
3568e5e @bos More benchmarkery: try out the json library.
authored
157
158 source-repository head
159 type: mercurial
160 location: http://bitbucket.org/bos/aeson
Something went wrong with that request. Please try again.