Skip to content

Commit

Permalink
Fix typos discovered by codespell (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored Apr 27, 2024
1 parent 9a99cbe commit 8f3b470
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion doc/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ Benchmark:
* ``inner_loops`` (``int >= 1``): number of inner-loops of the benchmark (``int``)
* ``timer``: Implementation of ``time.perf_counter()``, and also resolution if
available
* ``tags``: (list of str, optional): A list of tags associated with the benchmark. If provided, the results output will be aggreggated by each tag.
* ``tags``: (list of str, optional): A list of tags associated with the benchmark. If provided, the results output will be aggregated by each tag.

Python metadata:

Expand Down
2 changes: 1 addition & 1 deletion doc/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Version 2.1.0 (2021-01-14)
* The :ref:`compare_to command <compare_to_cmd>` no longer displays
percentages: display less numbers to make the output easier to read. Also,
percentage were almost the same values than the xxx faster or xxx slower
values, but rounded differenly which introduced confusion.
values, but rounded differently which introduced confusion.
* Project moved to https://github.com/psf/pyperf/
* system command now only emits a warning rather than failing with a hard error
if it fails to get or set the frequency of a CPU.
Expand Down
2 changes: 1 addition & 1 deletion doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Python pyperf module

The Python ``pyperf`` module is a toolkit to write, run and analyze benchmarks.

Documenation:
Documentation:

.. toctree::
:maxdepth: 2
Expand Down
4 changes: 2 additions & 2 deletions pyperf/_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class CLIError(Exception):
class Runner:
_created = set()

# Default parameters are chosen to have approximatively a run of 0.5 second
# Default parameters are chosen to have approximately a run of 0.5 second
# and so a total duration of 5 seconds by default
def __init__(self, values=None, processes=None,
loops=0, min_time=0.1, metadata=None,
Expand All @@ -85,7 +85,7 @@ def __init__(self, values=None, processes=None,
pass

# Watchdog: ensure that only once instance of Runner (or a Runner
# subclass) is created per process to prevent bad suprises
# subclass) is created per process to prevent bad surprises
cls = self.__class__
key = id(cls)
if key in cls._created:
Expand Down
2 changes: 1 addition & 1 deletion pyperf/_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ def write(self, tune):

class LinuxScheduler(Operation):
"""
Check isolcpus=cpus and rcu_nocbs=cpus paramaters of the Linux kernel
Check isolcpus=cpus and rcu_nocbs=cpus parameters of the Linux kernel
command line.
"""

Expand Down
2 changes: 1 addition & 1 deletion pyperf/_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def compute(self):
else:
self.compute_warmups_values()

# collect metatadata
# collect metadata
metadata2 = self.collect_metadata()
metadata2.update(self.metadata)
self.metadata = metadata2
Expand Down

0 comments on commit 8f3b470

Please sign in to comment.