❯ hyperfine --warmup 32 \--prepare "git checkout rm-importlib.metadata" 'python3 -c "import humanize # PR"' \--prepare "git checkout main" 'python3 -c "import humanize # main"'Benchmark 1: python3 -c "import humanize # PR" Time (mean ± σ): 23.5 ms ± 3.5 ms [User: 18.0 ms, System: 4.3 ms] Range (min … max): 21.8 ms … 43.4 ms 75 runs Warning: Statistical outliers were detected. Consider re-running this benchmark on a quiet system without any interferences from other programs.Benchmark 2: python3 -c "import humanize # main" Time (mean ± σ): 43.4 ms ± 2.3 ms [User: 34.5 ms, System: 7.6 ms] Range (min … max): 41.8 ms … 52.9 ms 52 runs Warning: Statistical outliers were detected. Consider re-running this benchmark on a quiet system without any interferences from other programs.Summary python3 -c "import humanize # PR" ran 1.85 ± 0.29 times faster than python3 -c "import humanize # main"
Also move mypy from pre-commit to tox, so it runs when the version file has been generated.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Like hugovk/tinytext#195.
With Python 3.13.0rc2:
main
PR
hyperfine
Also move mypy from pre-commit to tox, so it runs when the version file has been generated.