Skip to content

Commit

Permalink
Renamed CPU time to speed.
Browse files Browse the repository at this point in the history
  • Loading branch information
eerimoq committed Jul 30, 2018
1 parent 5866b42 commit f81f31a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ script:
- env PYTHONPATH=. python examples/hello_world.py
- env PYTHONPATH=. python examples/benchmarks/json/errors.py
- env PYTHONPATH=. python examples/benchmarks/json/parse_tree.py
- env PYTHONPATH=. python examples/benchmarks/json/cpu.py
- env PYTHONPATH=. python examples/benchmarks/json/speed.py
after_success:
coveralls
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ test:
env PYTHONPATH=. python3 examples/proto3.py
env PYTHONPATH=. python3 examples/benchmarks/json/errors.py
env PYTHONPATH=. python3 examples/benchmarks/json/parse_tree.py
env PYTHONPATH=. python3 examples/benchmarks/json/cpu.py
env PYTHONPATH=. python3 examples/benchmarks/json/speed.py
codespell -d $$(git ls-files | grep -v \.json)

test-sdist:
Expand Down
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ Script execution:
Benchmark
=========

A `benchmark`_ comparing the CPU time of 10 JSON parsers, parsing a
`276 kb file`_.
A `benchmark`_ comparing the speed of 10 JSON parsers, parsing a `276
kb file`_.

.. code-block:: text
$ env PYTHONPATH=. python3 examples/benchmarks/json/cpu.py
$ env PYTHONPATH=. python3 examples/benchmarks/json/speed.py
Parsed 'examples/benchmarks/json/data.json' 1 time(s) in:
PACKAGE SECONDS RATIO VERSION
Expand Down Expand Up @@ -131,5 +131,5 @@ Contributing

.. _PyParsing: https://github.com/pyparsing/pyparsing
.. _Hello World: https://github.com/eerimoq/textparser/blob/master/examples/hello_world.py
.. _benchmark: https://github.com/eerimoq/textparser/blob/master/examples/benchmarks/json/cpu.py
.. _benchmark: https://github.com/eerimoq/textparser/blob/master/examples/benchmarks/json/speed.py
.. _276 kb file: https://github.com/eerimoq/textparser/blob/master/examples/benchmarks/json/data.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/usr/bin/env python

"""A benchmark comparing the CPU time of 10 parsers.
"""A benchmark comparing the speed of 10 parsers.
Test data generated with https://www.json-generator.com.
Example execution:
$ env PYTHONPATH=. python3 examples/benchmarks/json/cpu.py
$ env PYTHONPATH=. python3 examples/benchmarks/json/speed.py
Parsed 'examples/benchmarks/json/data.json' 1 time(s) in:
PACKAGE SECONDS RATIO VERSION
Expand Down

0 comments on commit f81f31a

Please sign in to comment.