Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos discovered by codespell #181

Merged
merged 1 commit into from
Apr 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/api.rst
Original file line number Diff line number Diff line change
@@ -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:

2 changes: 1 addition & 1 deletion doc/changelog.rst
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion doc/index.rst
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions pyperf/_runner.py
Original file line number Diff line number Diff line change
@@ -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,
@@ -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:
2 changes: 1 addition & 1 deletion pyperf/_system.py
Original file line number Diff line number Diff line change
@@ -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.
"""

2 changes: 1 addition & 1 deletion pyperf/_worker.py
Original file line number Diff line number Diff line change
@@ -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