File tree 2 files changed +32
-0
lines changed 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 4
4
5
5
* Removed support for Python 2.7 and 3.4,
6
6
3.5+ is still supported.
7
+ * Distribute the existing ` benchmark.py ` script
8
+ as `` ijson.benchmark `` .
9
+ The module is an improved version of the script,
10
+ supporting #iterations for a given function invocation,
11
+ multiple input files,
12
+ and more.
7
13
8
14
## [ 3.2.3]
9
15
Original file line number Diff line number Diff line change @@ -175,6 +175,28 @@ For example::
175
175
Using ``-h/--help `` will show all available options.
176
176
177
177
178
+ .. _benchmarking :
179
+
180
+ Benchmarking
181
+ ------------
182
+
183
+ A command line utility is included with ijson
184
+ to help benchmarking the different methods offered by the package.
185
+ It offers some built-in example inputs
186
+ that try to mimic different scenarios,
187
+ but more importantly it also supports user-provided inputs.
188
+ You can also specify which backends to time,
189
+ number of iterations,
190
+ and more.
191
+
192
+ The tool is available by running the ``ijson.benchmark `` module.
193
+ For example::
194
+
195
+ $> python -m ijson.benchmark my/json/file.json -m items -p values.item
196
+
197
+ Using ``-h/--help `` will show all available options.
198
+
199
+
178
200
``bytes ``/``str `` support
179
201
-------------------------
180
202
@@ -493,6 +515,10 @@ out of ijson:
493
515
might show better performance.
494
516
See options _ for details.
495
517
518
+ The benchmarking _ tool should help
519
+ with trying some of these options
520
+ and observing their effect on your input files.
521
+
496
522
497
523
.. _faq :
498
524
You can’t perform that action at this time.
0 commit comments