Alexander Cyon
9d04bfd848
[benchmark] Fix typos
2024-07-06 13:17:13 +02:00
Josh Soref
fa3ff899a9
Spelling benchmark ( #42457 )
...
* spelling: approximate
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: available
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: benchmarks
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: between
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: calculation
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: characterization
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: coefficient
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: computation
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: deterministic
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: divisor
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: encounter
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: expected
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: fibonacci
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: fulfill
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: implements
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: into
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: intrinsic
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: markdown
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: measure
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: occurrences
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: omitted
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: partition
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: performance
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: practice
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: preemptive
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: repeated
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: requirements
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: requires
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: response
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: supports
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: unknown
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: utilities
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: verbose
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com >
2022-04-25 09:02:06 -07:00
Daniel Duan
3dfc40898c
[NFC] Remove Python 2 imports from __future__ ( #42086 )
...
The `__future__` we relied on is now, where the 3 specific things are
all included [since Python 3.0](https://docs.python.org/3/library/__future__.html ):
* absolute_import
* print_function
* unicode_literals
* division
These import statements are no-ops and are no longer necessary.
2022-04-13 14:01:30 -07:00
Daniel Duan
06a04624a6
[benchmark] Remove Python 2 logic ( #42048 )
...
Found a few pieces of Python 2 code. Remove them since we are on Python
3 entirely.
2022-03-27 15:02:58 -07:00
Evan Wilde
6956b7c5c9
Replace /usr/bin/python with /usr/env/python
...
/usr/bin/python doesn't exist on ubuntu 20.04 causing tests to fail.
I've updated the shebangs everywhere to use `/usr/bin/env python`
instead.
2021-09-28 10:05:05 -07:00
Sergej Jaskiewicz
cce9e81f0b
Support Python 3 in the benchmark suite
2020-02-28 01:45:35 +03:00
Ross Bayer
b1961745e0
[Python: black] Reformatted the benchmark Python sources using utils/python_format.py.
2020-02-08 15:32:44 -08:00
Alex Hoppen
932525d762
[gardening] Fix several python-lint warnings
2019-10-29 10:40:20 -07:00
Alex Hoppen
776e2c0030
Revert "Migrate building SwiftSyntax to swift_build_support"
2019-10-29 09:55:32 -07:00
Alex Hoppen
46501b881f
[gardening] Fix several python-lint warnings
2019-10-25 15:58:07 -07:00
Pavol Vaskovic
ab16999e20
[benchmark] Created BenchmarkDoctor (naming)
...
`BenchmarkDoctor` analyzes performance tests and reports their conformance to the set of desired criteria. First two rules verify the naming convention.
`BenchmarkDoctor` is invoked from `Benchmark_Driver` with `check` aurgument.
2018-08-17 08:40:39 +02:00
Pavol Vaskovic
0b990a82a5
[benchmark] Extracted test_utils.py
...
Moving the `captured_output` function to own file.
Adding homegrown unit testing helper classes `Stub` and `Mock`.
The issue is that the unittest.mock was added in Python 3.3 and we need to run on Python 2.7. `Stub` and `Mock` were organically developed as minimal implementations to support the common testing patterns used on the original branch, but since I’m rewriting the commit history to provide an easily digestible narrative, it makes sense to introduce them here in one step as a custom unit testing library.
2018-08-16 20:08:34 +02:00