mirror of
https://github.com/Textualize/rich.git
synced 2025-07-07 12:54:59 +00:00
Update ASV instructions, results, and pin setuptools in asv config
This commit is contained in:
parent
53cda57490
commit
7ef74e524b
83 changed files with 170 additions and 83 deletions
24
.github/workflows/update_benchmark_website.yml
vendored
24
.github/workflows/update_benchmark_website.yml
vendored
|
@ -1,24 +0,0 @@
|
|||
on:
|
||||
release:
|
||||
types: [ released ]
|
||||
|
||||
|
||||
jobs:
|
||||
asv-publish-and-copy:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.10.2'
|
||||
- run: 'pip install asv'
|
||||
- run: 'asv publish'
|
||||
- uses: cpina/github-action-push-to-another-repository@v1.4.1
|
||||
name: 'Copy files to Textualize/rich-benchmarks repo'
|
||||
env:
|
||||
API_TOKEN_GITHUB: ${{ secrets.PUBLISH_ASV }}
|
||||
with:
|
||||
source-directory: /benchmarks/html
|
||||
destination-github-username: Textualize
|
||||
destination-repository-name: rich-benchmarks
|
||||
user-email: darren@textualize.io
|
|
@ -1,5 +1,6 @@
|
|||
# See https://pre-commit.com for more information
|
||||
# See https://pre-commit.com/hooks.html for more hooks
|
||||
exclude: benchmarks/
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.0.1
|
||||
|
|
|
@ -29,6 +29,6 @@
|
|||
"3.10"
|
||||
],
|
||||
"matrix": {
|
||||
"req": {}
|
||||
"setuptools": ["59.2.0"]
|
||||
}
|
||||
}
|
||||
|
|
22
asvhashfile
Normal file
22
asvhashfile
Normal file
|
@ -0,0 +1,22 @@
|
|||
v10.0.0
|
||||
v10.2.2
|
||||
v10.6.0
|
||||
v10.7.0
|
||||
v10.8.0
|
||||
v10.9.0
|
||||
v11.0.0
|
||||
v11.1.0
|
||||
v11.2.0
|
||||
v12.0.0
|
||||
v12.0.1
|
||||
v12.1.0
|
||||
v12.2.0
|
||||
v12.3.0
|
||||
v12.4.0
|
||||
v12.4.1
|
||||
v12.4.2
|
||||
v12.4.3
|
||||
v12.4.4
|
||||
v8.0.0
|
||||
v9.13.0
|
||||
v9.5.1
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
This directory contains benchmarks, for monitoring the performance of Rich over time.
|
||||
|
||||
View the benchmark dashboard [here](https://textualize.github.io/rich-benchmarks/).
|
||||
|
||||
The benchmarks use a tool called [Airspeed Velocity](https://asv.readthedocs.io/en/stable) (`asv`),
|
||||
and we've configured it in [asv.conf.json](../asv.conf.json).
|
||||
|
||||
|
@ -15,3 +17,13 @@ here are some common actions:
|
|||
* To generate a static website for browsing the results, run `asv publish`. The resulting HTML can be found in `benchmarks/html`.
|
||||
|
||||
The asv docs have some more examples [here](https://asv.readthedocs.io/en/stable/using.html#benchmarking).
|
||||
|
||||
## Updating the Benchmark Website
|
||||
|
||||
1. Ensure any tags you wish to benchmark are included in the file `asvhashfile` at the root of the repo.
|
||||
2. Run the benchmarks for those tags by running `asv run HASHFILE:asvhashfile`. This will take several minutes.
|
||||
3. Create the HTML locally for those benchmarks by running `asv publish`.
|
||||
4. Run `asv preview` to launch a local webserver that will let you preview the benchmarks dashboard. Navigate to the URL this command gives you and check everything looks fine.
|
||||
5. Checkout the `rich-benchmarks` repo from [here](https://github.com/Textualize/rich-benchmarks) and `cd` into it.
|
||||
6. Copy the HTML you generated earlier into the root of this repo, e.g. `cp -r ../rich/benchmarks/html/* .` (assuming you checked out `rich-benchmarks` alongside `rich` in your filesystem)
|
||||
7. When the HTML is merged into `main`, the [benchmark dashboard](https://textualize.github.io/rich-benchmarks/) will be updated automatically via a GitHub Action.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"benchmarks.ColorSuite.time_downgrade_to_eight_bit": {
|
||||
"code": "class ColorSuite:\n def time_downgrade_to_eight_bit(self):\n self.color.downgrade(ColorSystem.EIGHT_BIT)\n\n def setup(self):\n self.console = Console(file=StringIO(), color_system=\"truecolor\", legacy_windows=False, width=100)\n self.color = Color.parse(\"#0d1da0\")",
|
||||
"code": "class ColorSuite:\n def time_downgrade_to_eight_bit(self):\n self.color.downgrade(ColorSystem.EIGHT_BIT)\n\n def setup(self):\n self.console = Console(\n file=StringIO(), color_system=\"truecolor\", legacy_windows=False, width=100\n )\n self.color = Color.parse(\"#0d1da0\")",
|
||||
"min_run_count": 2,
|
||||
"name": "benchmarks.ColorSuite.time_downgrade_to_eight_bit",
|
||||
"number": 0,
|
||||
|
@ -12,11 +12,11 @@
|
|||
"timeout": 60.0,
|
||||
"type": "time",
|
||||
"unit": "seconds",
|
||||
"version": "019b972f782c6291df9a6a4dea9bb3c6268a69b177e71383d6e19a608e84920d",
|
||||
"version": "9da5ad0b5cfed4def0fe21fbea49ad4605f84bae78c584d9178a6b21be58d506",
|
||||
"warmup_time": -1
|
||||
},
|
||||
"benchmarks.ColorSuite.time_downgrade_to_standard": {
|
||||
"code": "class ColorSuite:\n def time_downgrade_to_standard(self):\n self.color.downgrade(ColorSystem.STANDARD)\n\n def setup(self):\n self.console = Console(file=StringIO(), color_system=\"truecolor\", legacy_windows=False, width=100)\n self.color = Color.parse(\"#0d1da0\")",
|
||||
"code": "class ColorSuite:\n def time_downgrade_to_standard(self):\n self.color.downgrade(ColorSystem.STANDARD)\n\n def setup(self):\n self.console = Console(\n file=StringIO(), color_system=\"truecolor\", legacy_windows=False, width=100\n )\n self.color = Color.parse(\"#0d1da0\")",
|
||||
"min_run_count": 2,
|
||||
"name": "benchmarks.ColorSuite.time_downgrade_to_standard",
|
||||
"number": 0,
|
||||
|
@ -28,11 +28,11 @@
|
|||
"timeout": 60.0,
|
||||
"type": "time",
|
||||
"unit": "seconds",
|
||||
"version": "f5e8556491c977450fff6ebfd9fff4fc8f12d74829aa5b8570bd27ea7a1c9d28",
|
||||
"version": "431bf40cae6650c65cdc6da70528f559c2e902abe9370cb73780dac5b5ef6826",
|
||||
"warmup_time": -1
|
||||
},
|
||||
"benchmarks.ColorSuite.time_downgrade_to_windows": {
|
||||
"code": "class ColorSuite:\n def time_downgrade_to_windows(self):\n self.color.downgrade(ColorSystem.WINDOWS)\n\n def setup(self):\n self.console = Console(file=StringIO(), color_system=\"truecolor\", legacy_windows=False, width=100)\n self.color = Color.parse(\"#0d1da0\")",
|
||||
"code": "class ColorSuite:\n def time_downgrade_to_windows(self):\n self.color.downgrade(ColorSystem.WINDOWS)\n\n def setup(self):\n self.console = Console(\n file=StringIO(), color_system=\"truecolor\", legacy_windows=False, width=100\n )\n self.color = Color.parse(\"#0d1da0\")",
|
||||
"min_run_count": 2,
|
||||
"name": "benchmarks.ColorSuite.time_downgrade_to_windows",
|
||||
"number": 0,
|
||||
|
@ -44,11 +44,11 @@
|
|||
"timeout": 60.0,
|
||||
"type": "time",
|
||||
"unit": "seconds",
|
||||
"version": "373eb97dd7ce2823e080972249235f528e8b3a47210911981cf432ecf0eef5fb",
|
||||
"version": "fef8d3fdb69ece95d49b5637f9d69760e29819d2d6e65e53e62356fec2e11b91",
|
||||
"warmup_time": -1
|
||||
},
|
||||
"benchmarks.ColorSuiteCached.time_downgrade_to_eight_bit": {
|
||||
"code": "class ColorSuiteCached:\n def time_downgrade_to_eight_bit(self):\n self.color.downgrade(ColorSystem.EIGHT_BIT)\n\n def setup(self):\n self.console = Console(file=StringIO(), color_system=\"truecolor\", legacy_windows=False, width=100)\n self.color = Color.parse(\"#0d1da0\")\n # Warm cache\n self.color.downgrade(ColorSystem.EIGHT_BIT)\n self.color.downgrade(ColorSystem.STANDARD)\n self.color.downgrade(ColorSystem.WINDOWS)",
|
||||
"code": "class ColorSuiteCached:\n def time_downgrade_to_eight_bit(self):\n self.color.downgrade(ColorSystem.EIGHT_BIT)\n\n def setup(self):\n self.console = Console(\n file=StringIO(), color_system=\"truecolor\", legacy_windows=False, width=100\n )\n self.color = Color.parse(\"#0d1da0\")\n # Warm cache\n self.color.downgrade(ColorSystem.EIGHT_BIT)\n self.color.downgrade(ColorSystem.STANDARD)\n self.color.downgrade(ColorSystem.WINDOWS)",
|
||||
"min_run_count": 2,
|
||||
"name": "benchmarks.ColorSuiteCached.time_downgrade_to_eight_bit",
|
||||
"number": 0,
|
||||
|
@ -60,11 +60,11 @@
|
|||
"timeout": 60.0,
|
||||
"type": "time",
|
||||
"unit": "seconds",
|
||||
"version": "716ff06a471a5d90af3730f6d4470eba3577432d781e0210dff1fd156b8c549c",
|
||||
"version": "5fdae4522a081f8212ac2d43d69bbc86b73876c4222f6ea36a80970afe663579",
|
||||
"warmup_time": -1
|
||||
},
|
||||
"benchmarks.ColorSuiteCached.time_downgrade_to_standard": {
|
||||
"code": "class ColorSuiteCached:\n def time_downgrade_to_standard(self):\n self.color.downgrade(ColorSystem.STANDARD)\n\n def setup(self):\n self.console = Console(file=StringIO(), color_system=\"truecolor\", legacy_windows=False, width=100)\n self.color = Color.parse(\"#0d1da0\")\n # Warm cache\n self.color.downgrade(ColorSystem.EIGHT_BIT)\n self.color.downgrade(ColorSystem.STANDARD)\n self.color.downgrade(ColorSystem.WINDOWS)",
|
||||
"code": "class ColorSuiteCached:\n def time_downgrade_to_standard(self):\n self.color.downgrade(ColorSystem.STANDARD)\n\n def setup(self):\n self.console = Console(\n file=StringIO(), color_system=\"truecolor\", legacy_windows=False, width=100\n )\n self.color = Color.parse(\"#0d1da0\")\n # Warm cache\n self.color.downgrade(ColorSystem.EIGHT_BIT)\n self.color.downgrade(ColorSystem.STANDARD)\n self.color.downgrade(ColorSystem.WINDOWS)",
|
||||
"min_run_count": 2,
|
||||
"name": "benchmarks.ColorSuiteCached.time_downgrade_to_standard",
|
||||
"number": 0,
|
||||
|
@ -76,11 +76,11 @@
|
|||
"timeout": 60.0,
|
||||
"type": "time",
|
||||
"unit": "seconds",
|
||||
"version": "3a752a7884e99e095c31b2a28cfefdf916cb2033c06afae1ea146a72f3ba650c",
|
||||
"version": "3806eb6f32fcfc22ff57b23b1d09e25fc82c35a97183e285d257fb2e2b464f8f",
|
||||
"warmup_time": -1
|
||||
},
|
||||
"benchmarks.ColorSuiteCached.time_downgrade_to_windows": {
|
||||
"code": "class ColorSuiteCached:\n def time_downgrade_to_windows(self):\n self.color.downgrade(ColorSystem.WINDOWS)\n\n def setup(self):\n self.console = Console(file=StringIO(), color_system=\"truecolor\", legacy_windows=False, width=100)\n self.color = Color.parse(\"#0d1da0\")\n # Warm cache\n self.color.downgrade(ColorSystem.EIGHT_BIT)\n self.color.downgrade(ColorSystem.STANDARD)\n self.color.downgrade(ColorSystem.WINDOWS)",
|
||||
"code": "class ColorSuiteCached:\n def time_downgrade_to_windows(self):\n self.color.downgrade(ColorSystem.WINDOWS)\n\n def setup(self):\n self.console = Console(\n file=StringIO(), color_system=\"truecolor\", legacy_windows=False, width=100\n )\n self.color = Color.parse(\"#0d1da0\")\n # Warm cache\n self.color.downgrade(ColorSystem.EIGHT_BIT)\n self.color.downgrade(ColorSystem.STANDARD)\n self.color.downgrade(ColorSystem.WINDOWS)",
|
||||
"min_run_count": 2,
|
||||
"name": "benchmarks.ColorSuiteCached.time_downgrade_to_windows",
|
||||
"number": 0,
|
||||
|
@ -92,11 +92,11 @@
|
|||
"timeout": 60.0,
|
||||
"type": "time",
|
||||
"unit": "seconds",
|
||||
"version": "1732bbd18ada49eb7b054fc18b40d6acfb533023463366f37203dab6fbb0cc20",
|
||||
"version": "2844899e3d81f71bd0b997401e1d300394b3ca130a056eb6b9aaca15ef07f39d",
|
||||
"warmup_time": -1
|
||||
},
|
||||
"benchmarks.PrettySuite.time_pretty": {
|
||||
"code": "class PrettySuite:\n def time_pretty(self):\n pretty = Pretty(snippets.PYTHON_DICT)\n self.console.print(pretty)\n\n def setup(self):\n self.console = Console(file=StringIO(), color_system=\"truecolor\", legacy_windows=False, width=100)",
|
||||
"code": "class PrettySuite:\n def time_pretty(self):\n pretty = Pretty(snippets.PYTHON_DICT)\n self.console.print(pretty)\n\n def setup(self):\n self.console = Console(\n file=StringIO(), color_system=\"truecolor\", legacy_windows=False, width=100\n )",
|
||||
"min_run_count": 2,
|
||||
"name": "benchmarks.PrettySuite.time_pretty",
|
||||
"number": 0,
|
||||
|
@ -108,11 +108,11 @@
|
|||
"timeout": 60.0,
|
||||
"type": "time",
|
||||
"unit": "seconds",
|
||||
"version": "9bb0e6d8a29aad21b3d1b550a160fa5f1e9030c69d16bad500c0dcc77bff6d01",
|
||||
"version": "12ef039b78ab19f0024f810fc30791bfe497731139b30a8c8ea7aef36ef9fed2",
|
||||
"warmup_time": -1
|
||||
},
|
||||
"benchmarks.PrettySuite.time_pretty_indent_guides": {
|
||||
"code": "class PrettySuite:\n def time_pretty_indent_guides(self):\n pretty = Pretty(snippets.PYTHON_DICT, indent_guides=True)\n self.console.print(pretty)\n\n def setup(self):\n self.console = Console(file=StringIO(), color_system=\"truecolor\", legacy_windows=False, width=100)",
|
||||
"code": "class PrettySuite:\n def time_pretty_indent_guides(self):\n pretty = Pretty(snippets.PYTHON_DICT, indent_guides=True)\n self.console.print(pretty)\n\n def setup(self):\n self.console = Console(\n file=StringIO(), color_system=\"truecolor\", legacy_windows=False, width=100\n )",
|
||||
"min_run_count": 2,
|
||||
"name": "benchmarks.PrettySuite.time_pretty_indent_guides",
|
||||
"number": 0,
|
||||
|
@ -124,11 +124,11 @@
|
|||
"timeout": 60.0,
|
||||
"type": "time",
|
||||
"unit": "seconds",
|
||||
"version": "8d71bf19dfe999b0fba95d009986bfd6911c53c7a0c455466725f553005c3bc7",
|
||||
"version": "27d39951a834104a09759cd0c9b1efe8570946400d606a04baad7b0e2355a259",
|
||||
"warmup_time": -1
|
||||
},
|
||||
"benchmarks.PrettySuite.time_pretty_justify_center": {
|
||||
"code": "class PrettySuite:\n def time_pretty_justify_center(self):\n pretty = Pretty(snippets.PYTHON_DICT, justify=\"center\")\n self.console.print(pretty)\n\n def setup(self):\n self.console = Console(file=StringIO(), color_system=\"truecolor\", legacy_windows=False, width=100)",
|
||||
"code": "class PrettySuite:\n def time_pretty_justify_center(self):\n pretty = Pretty(snippets.PYTHON_DICT, justify=\"center\")\n self.console.print(pretty)\n\n def setup(self):\n self.console = Console(\n file=StringIO(), color_system=\"truecolor\", legacy_windows=False, width=100\n )",
|
||||
"min_run_count": 2,
|
||||
"name": "benchmarks.PrettySuite.time_pretty_justify_center",
|
||||
"number": 0,
|
||||
|
@ -140,11 +140,11 @@
|
|||
"timeout": 60.0,
|
||||
"type": "time",
|
||||
"unit": "seconds",
|
||||
"version": "54cbf71bacab14ccbe1d063847c0b89198ed1bbe06edc89c14d2e3c7b1986c41",
|
||||
"version": "51fe6d435fa7bcd605b26131da960edffb88929baa7aca98c9b3f7b23364cb6f",
|
||||
"warmup_time": -1
|
||||
},
|
||||
"benchmarks.StyleSuite.time_parse_ansi": {
|
||||
"code": "class StyleSuite:\n def time_parse_ansi(self):\n Style.parse(\"red on blue\")\n\n def setup(self):\n self.console = Console(file=StringIO(), color_system=\"truecolor\", legacy_windows=False, width=100)",
|
||||
"code": "class StyleSuite:\n def time_parse_ansi(self):\n Style.parse(\"red on blue\")\n\n def setup(self):\n self.console = Console(\n file=StringIO(), color_system=\"truecolor\", legacy_windows=False, width=100\n )",
|
||||
"min_run_count": 2,
|
||||
"name": "benchmarks.StyleSuite.time_parse_ansi",
|
||||
"number": 0,
|
||||
|
@ -156,11 +156,11 @@
|
|||
"timeout": 60.0,
|
||||
"type": "time",
|
||||
"unit": "seconds",
|
||||
"version": "a003aaa8017585efeb1cd9c43351282df4df6249bf28a4c447b1304d984aa753",
|
||||
"version": "30751ae63d82770f620ab5f807faf7437a5a7f2309db0c6403adb23ce9571ee5",
|
||||
"warmup_time": -1
|
||||
},
|
||||
"benchmarks.StyleSuite.time_parse_hex": {
|
||||
"code": "class StyleSuite:\n def time_parse_hex(self):\n Style.parse(\"#f0f0f0 on #e2e28a\")\n\n def setup(self):\n self.console = Console(file=StringIO(), color_system=\"truecolor\", legacy_windows=False, width=100)",
|
||||
"code": "class StyleSuite:\n def time_parse_hex(self):\n Style.parse(\"#f0f0f0 on #e2e28a\")\n\n def setup(self):\n self.console = Console(\n file=StringIO(), color_system=\"truecolor\", legacy_windows=False, width=100\n )",
|
||||
"min_run_count": 2,
|
||||
"name": "benchmarks.StyleSuite.time_parse_hex",
|
||||
"number": 0,
|
||||
|
@ -172,11 +172,11 @@
|
|||
"timeout": 60.0,
|
||||
"type": "time",
|
||||
"unit": "seconds",
|
||||
"version": "cf5a3f0def435d3da5bc3a6e7549c44c0a02e9cce6c00ecde8dd7f527556f8ca",
|
||||
"version": "4d64f24e35306bc59f161cfd8e9542f1f76521ac58951af3841fba1722a9917b",
|
||||
"warmup_time": -1
|
||||
},
|
||||
"benchmarks.StyleSuite.time_parse_mixed_complex_style": {
|
||||
"code": "class StyleSuite:\n def time_parse_mixed_complex_style(self):\n Style.parse(\"dim bold reverse #00ee00 on rgb(123,12,50)\")\n\n def setup(self):\n self.console = Console(file=StringIO(), color_system=\"truecolor\", legacy_windows=False, width=100)",
|
||||
"code": "class StyleSuite:\n def time_parse_mixed_complex_style(self):\n Style.parse(\"dim bold reverse #00ee00 on rgb(123,12,50)\")\n\n def setup(self):\n self.console = Console(\n file=StringIO(), color_system=\"truecolor\", legacy_windows=False, width=100\n )",
|
||||
"min_run_count": 2,
|
||||
"name": "benchmarks.StyleSuite.time_parse_mixed_complex_style",
|
||||
"number": 0,
|
||||
|
@ -188,11 +188,11 @@
|
|||
"timeout": 60.0,
|
||||
"type": "time",
|
||||
"unit": "seconds",
|
||||
"version": "01c9e12ae829b1984e55a5aeef1a9ae6f1461577adaf5ae59f06358c8b52802f",
|
||||
"version": "9a9eff6e02c4c05312809b98da8d740a48c93f8718ff7ba74cfec9e3f956dbd8",
|
||||
"warmup_time": -1
|
||||
},
|
||||
"benchmarks.SyntaxWrappingSuite.time_text_thin_terminal_heavy_wrapping": {
|
||||
"code": "class SyntaxWrappingSuite:\n def time_text_thin_terminal_heavy_wrapping(self):\n self._print_with_width(20)\n\n def setup(self):\n self.console = Console(file=StringIO(), color_system=\"truecolor\", legacy_windows=False)\n self.syntax = Syntax(code=snippets.PYTHON_SNIPPET, lexer=\"python\", word_wrap=True)",
|
||||
"code": "class SyntaxWrappingSuite:\n def time_text_thin_terminal_heavy_wrapping(self):\n self._print_with_width(20)\n\n def setup(self):\n self.console = Console(\n file=StringIO(), color_system=\"truecolor\", legacy_windows=False\n )\n self.syntax = Syntax(\n code=snippets.PYTHON_SNIPPET, lexer=\"python\", word_wrap=True\n )",
|
||||
"min_run_count": 2,
|
||||
"name": "benchmarks.SyntaxWrappingSuite.time_text_thin_terminal_heavy_wrapping",
|
||||
"number": 0,
|
||||
|
@ -204,11 +204,11 @@
|
|||
"timeout": 60.0,
|
||||
"type": "time",
|
||||
"unit": "seconds",
|
||||
"version": "1ed4d74ea424990cfb40c96f07635f9bcf7b8bacc7ade5204aaf96363e1622ee",
|
||||
"version": "bcf6771787d6f643c3a02ed76b9045b8c773101dd7d307f989596e535a1dc8fa",
|
||||
"warmup_time": -1
|
||||
},
|
||||
"benchmarks.SyntaxWrappingSuite.time_text_thin_terminal_medium_wrapping": {
|
||||
"code": "class SyntaxWrappingSuite:\n def time_text_thin_terminal_medium_wrapping(self):\n self._print_with_width(60)\n\n def setup(self):\n self.console = Console(file=StringIO(), color_system=\"truecolor\", legacy_windows=False)\n self.syntax = Syntax(code=snippets.PYTHON_SNIPPET, lexer=\"python\", word_wrap=True)",
|
||||
"code": "class SyntaxWrappingSuite:\n def time_text_thin_terminal_medium_wrapping(self):\n self._print_with_width(60)\n\n def setup(self):\n self.console = Console(\n file=StringIO(), color_system=\"truecolor\", legacy_windows=False\n )\n self.syntax = Syntax(\n code=snippets.PYTHON_SNIPPET, lexer=\"python\", word_wrap=True\n )",
|
||||
"min_run_count": 2,
|
||||
"name": "benchmarks.SyntaxWrappingSuite.time_text_thin_terminal_medium_wrapping",
|
||||
"number": 0,
|
||||
|
@ -220,11 +220,11 @@
|
|||
"timeout": 60.0,
|
||||
"type": "time",
|
||||
"unit": "seconds",
|
||||
"version": "0880e162a4907ee025cef8ac3380502554fde27fd0c90a4c15cebc9c27f3e333",
|
||||
"version": "df349deebd0cb3fe2602808efb2cc95270bdd3ff3734e07c13348039c5385ff9",
|
||||
"warmup_time": -1
|
||||
},
|
||||
"benchmarks.SyntaxWrappingSuite.time_text_wide_terminal_no_wrapping": {
|
||||
"code": "class SyntaxWrappingSuite:\n def time_text_wide_terminal_no_wrapping(self):\n self._print_with_width(100)\n\n def setup(self):\n self.console = Console(file=StringIO(), color_system=\"truecolor\", legacy_windows=False)\n self.syntax = Syntax(code=snippets.PYTHON_SNIPPET, lexer=\"python\", word_wrap=True)",
|
||||
"code": "class SyntaxWrappingSuite:\n def time_text_wide_terminal_no_wrapping(self):\n self._print_with_width(100)\n\n def setup(self):\n self.console = Console(\n file=StringIO(), color_system=\"truecolor\", legacy_windows=False\n )\n self.syntax = Syntax(\n code=snippets.PYTHON_SNIPPET, lexer=\"python\", word_wrap=True\n )",
|
||||
"min_run_count": 2,
|
||||
"name": "benchmarks.SyntaxWrappingSuite.time_text_wide_terminal_no_wrapping",
|
||||
"number": 0,
|
||||
|
@ -236,7 +236,7 @@
|
|||
"timeout": 60.0,
|
||||
"type": "time",
|
||||
"unit": "seconds",
|
||||
"version": "feb11e94ae6a75de2dee899fb93db098b55cde232710660d7d66f9e2b288d9c0",
|
||||
"version": "0af0a4fdbcad1978765c9980b246270adec7d7917b7fb7ce9f544a55892503c2",
|
||||
"warmup_time": -1
|
||||
},
|
||||
"benchmarks.TableSuite.time_table_heavy_wrapping": {
|
||||
|
@ -272,7 +272,7 @@
|
|||
"warmup_time": -1
|
||||
},
|
||||
"benchmarks.TextSuite.time_align_center": {
|
||||
"code": "class TextSuite:\n def time_align_center(self):\n Text(snippets.LOREM_IPSUM).align(\"center\", width=self.len_lorem_ipsum * 3)\n\n def setup(self):\n self.console = Console(file=StringIO(), color_system=\"truecolor\", legacy_windows=False)\n self.len_lorem_ipsum = len(snippets.LOREM_IPSUM)",
|
||||
"code": "class TextSuite:\n def time_align_center(self):\n Text(snippets.LOREM_IPSUM).align(\"center\", width=self.len_lorem_ipsum * 3)\n\n def setup(self):\n self.console = Console(\n file=StringIO(), color_system=\"truecolor\", legacy_windows=False\n )\n self.len_lorem_ipsum = len(snippets.LOREM_IPSUM)",
|
||||
"min_run_count": 2,
|
||||
"name": "benchmarks.TextSuite.time_align_center",
|
||||
"number": 0,
|
||||
|
@ -284,11 +284,11 @@
|
|||
"timeout": 60.0,
|
||||
"type": "time",
|
||||
"unit": "seconds",
|
||||
"version": "1ceeeef2de43fcb3d0dfec409972d8f0eb791e9615fa9f9c959e0423725b089b",
|
||||
"version": "f51eebb0dd72719da589ba30bbd85be25adf556231f15da3b8694499bb5b124f",
|
||||
"warmup_time": -1
|
||||
},
|
||||
"benchmarks.TextSuite.time_align_center_unicode_heavy": {
|
||||
"code": "class TextSuite:\n def time_align_center_unicode_heavy(self):\n Text(snippets.UNICODE_HEAVY_TEXT).align(\"center\", width=self.len_lorem_ipsum * 3)\n\n def setup(self):\n self.console = Console(file=StringIO(), color_system=\"truecolor\", legacy_windows=False)\n self.len_lorem_ipsum = len(snippets.LOREM_IPSUM)",
|
||||
"code": "class TextSuite:\n def time_align_center_unicode_heavy(self):\n Text(snippets.UNICODE_HEAVY_TEXT).align(\n \"center\", width=self.len_lorem_ipsum * 3\n )\n\n def setup(self):\n self.console = Console(\n file=StringIO(), color_system=\"truecolor\", legacy_windows=False\n )\n self.len_lorem_ipsum = len(snippets.LOREM_IPSUM)",
|
||||
"min_run_count": 2,
|
||||
"name": "benchmarks.TextSuite.time_align_center_unicode_heavy",
|
||||
"number": 0,
|
||||
|
@ -300,11 +300,11 @@
|
|||
"timeout": 60.0,
|
||||
"type": "time",
|
||||
"unit": "seconds",
|
||||
"version": "a83ff79614dd2ae17e8b68f45981fcaa0d9833c59a7a14f171b896cf970f54ce",
|
||||
"version": "6f157a0bd86b9db1c709c8fa9716458f797106b55ecd35afab408bd281b27e40",
|
||||
"warmup_time": -1
|
||||
},
|
||||
"benchmarks.TextSuite.time_divide": {
|
||||
"code": "class TextSuite:\n def time_divide(self):\n Text(snippets.LOREM_IPSUM).divide(range(20, 100, 4))\n\n def setup(self):\n self.console = Console(file=StringIO(), color_system=\"truecolor\", legacy_windows=False)\n self.len_lorem_ipsum = len(snippets.LOREM_IPSUM)",
|
||||
"code": "class TextSuite:\n def time_divide(self):\n Text(snippets.LOREM_IPSUM).divide(range(20, 100, 4))\n\n def setup(self):\n self.console = Console(\n file=StringIO(), color_system=\"truecolor\", legacy_windows=False\n )\n self.len_lorem_ipsum = len(snippets.LOREM_IPSUM)",
|
||||
"min_run_count": 2,
|
||||
"name": "benchmarks.TextSuite.time_divide",
|
||||
"number": 0,
|
||||
|
@ -316,11 +316,11 @@
|
|||
"timeout": 60.0,
|
||||
"type": "time",
|
||||
"unit": "seconds",
|
||||
"version": "dcc120b921cb2ec77632f8fe2f6f4150d479cb49ef2608f8e86b569a937756e9",
|
||||
"version": "64851da7a4fff5f7eedf5d6f18883aeb59a43decf556c31e627b6973bd1cc34e",
|
||||
"warmup_time": -1
|
||||
},
|
||||
"benchmarks.TextSuite.time_divide_unicode_heavy": {
|
||||
"code": "class TextSuite:\n def time_divide_unicode_heavy(self):\n Text(snippets.UNICODE_HEAVY_TEXT).divide(range(20, 100, 4))\n\n def setup(self):\n self.console = Console(file=StringIO(), color_system=\"truecolor\", legacy_windows=False)\n self.len_lorem_ipsum = len(snippets.LOREM_IPSUM)",
|
||||
"code": "class TextSuite:\n def time_divide_unicode_heavy(self):\n Text(snippets.UNICODE_HEAVY_TEXT).divide(range(20, 100, 4))\n\n def setup(self):\n self.console = Console(\n file=StringIO(), color_system=\"truecolor\", legacy_windows=False\n )\n self.len_lorem_ipsum = len(snippets.LOREM_IPSUM)",
|
||||
"min_run_count": 2,
|
||||
"name": "benchmarks.TextSuite.time_divide_unicode_heavy",
|
||||
"number": 0,
|
||||
|
@ -332,11 +332,11 @@
|
|||
"timeout": 60.0,
|
||||
"type": "time",
|
||||
"unit": "seconds",
|
||||
"version": "ea53e662c0553324f90ac3336dcee77f733bb33638888e1f84bf71945a2f3f8e",
|
||||
"version": "703b70a87fe0aa1599bb2e397e436f2387baf8cf7dcf349952df217899b97097",
|
||||
"warmup_time": -1
|
||||
},
|
||||
"benchmarks.TextSuite.time_fit": {
|
||||
"code": "class TextSuite:\n def time_fit(self):\n Text(snippets.LOREM_IPSUM).fit(12)\n\n def setup(self):\n self.console = Console(file=StringIO(), color_system=\"truecolor\", legacy_windows=False)\n self.len_lorem_ipsum = len(snippets.LOREM_IPSUM)",
|
||||
"code": "class TextSuite:\n def time_fit(self):\n Text(snippets.LOREM_IPSUM).fit(12)\n\n def setup(self):\n self.console = Console(\n file=StringIO(), color_system=\"truecolor\", legacy_windows=False\n )\n self.len_lorem_ipsum = len(snippets.LOREM_IPSUM)",
|
||||
"min_run_count": 2,
|
||||
"name": "benchmarks.TextSuite.time_fit",
|
||||
"number": 0,
|
||||
|
@ -348,11 +348,11 @@
|
|||
"timeout": 60.0,
|
||||
"type": "time",
|
||||
"unit": "seconds",
|
||||
"version": "ec77b412db357b1e1c1e7bc620b941dddfc36dc76d2a66a0417feae4f21fe1d3",
|
||||
"version": "8eab5a31717088de197d2d9f60d4e1658dbf3941e1afc4a378134fc8683c8bef",
|
||||
"warmup_time": -1
|
||||
},
|
||||
"benchmarks.TextSuite.time_fit_unicode_heavy": {
|
||||
"code": "class TextSuite:\n def time_fit_unicode_heavy(self):\n Text(snippets.UNICODE_HEAVY_TEXT).fit(12)\n\n def setup(self):\n self.console = Console(file=StringIO(), color_system=\"truecolor\", legacy_windows=False)\n self.len_lorem_ipsum = len(snippets.LOREM_IPSUM)",
|
||||
"code": "class TextSuite:\n def time_fit_unicode_heavy(self):\n Text(snippets.UNICODE_HEAVY_TEXT).fit(12)\n\n def setup(self):\n self.console = Console(\n file=StringIO(), color_system=\"truecolor\", legacy_windows=False\n )\n self.len_lorem_ipsum = len(snippets.LOREM_IPSUM)",
|
||||
"min_run_count": 2,
|
||||
"name": "benchmarks.TextSuite.time_fit_unicode_heavy",
|
||||
"number": 0,
|
||||
|
@ -364,11 +364,11 @@
|
|||
"timeout": 60.0,
|
||||
"type": "time",
|
||||
"unit": "seconds",
|
||||
"version": "d1574b4af2ef8b80b95b4dbeeb13e5de67b66783f76f9968834776239dd0dc66",
|
||||
"version": "7154022579acd99d94691787cdf31162b15e38998dbc46d85250baacfdb339ef",
|
||||
"warmup_time": -1
|
||||
},
|
||||
"benchmarks.TextSuite.time_indent_guides": {
|
||||
"code": "class TextSuite:\n def time_indent_guides(self):\n Text(snippets.PYTHON_SNIPPET).with_indent_guides()\n\n def setup(self):\n self.console = Console(file=StringIO(), color_system=\"truecolor\", legacy_windows=False)\n self.len_lorem_ipsum = len(snippets.LOREM_IPSUM)",
|
||||
"code": "class TextSuite:\n def time_indent_guides(self):\n Text(snippets.PYTHON_SNIPPET).with_indent_guides()\n\n def setup(self):\n self.console = Console(\n file=StringIO(), color_system=\"truecolor\", legacy_windows=False\n )\n self.len_lorem_ipsum = len(snippets.LOREM_IPSUM)",
|
||||
"min_run_count": 2,
|
||||
"name": "benchmarks.TextSuite.time_indent_guides",
|
||||
"number": 0,
|
||||
|
@ -380,11 +380,11 @@
|
|||
"timeout": 60.0,
|
||||
"type": "time",
|
||||
"unit": "seconds",
|
||||
"version": "18da036dcfc15ec5e3c11e72be7c8f0c22fba695a5f19c95836be36952376cf2",
|
||||
"version": "5a3722c26c96d1ef013e493ae4d2f99aa04f989ae6a8229123afd9d80f38a384",
|
||||
"warmup_time": -1
|
||||
},
|
||||
"benchmarks.TextSuite.time_render": {
|
||||
"code": "class TextSuite:\n def time_render(self):\n Text(snippets.LOREM_IPSUM).render(self.console)\n\n def setup(self):\n self.console = Console(file=StringIO(), color_system=\"truecolor\", legacy_windows=False)\n self.len_lorem_ipsum = len(snippets.LOREM_IPSUM)",
|
||||
"code": "class TextSuite:\n def time_render(self):\n Text(snippets.LOREM_IPSUM).render(self.console)\n\n def setup(self):\n self.console = Console(\n file=StringIO(), color_system=\"truecolor\", legacy_windows=False\n )\n self.len_lorem_ipsum = len(snippets.LOREM_IPSUM)",
|
||||
"min_run_count": 2,
|
||||
"name": "benchmarks.TextSuite.time_render",
|
||||
"number": 0,
|
||||
|
@ -396,11 +396,11 @@
|
|||
"timeout": 60.0,
|
||||
"type": "time",
|
||||
"unit": "seconds",
|
||||
"version": "907d30581cfdc7bb2c4d302b7e3cb474aaefd8b84821365fe105af7d82be3b09",
|
||||
"version": "28f30de133a59a0ae0c7e34075766a5a7e492acb6401c8ceb24b6d0c4002db53",
|
||||
"warmup_time": -1
|
||||
},
|
||||
"benchmarks.TextSuite.time_render_unicode_heavy": {
|
||||
"code": "class TextSuite:\n def time_render_unicode_heavy(self):\n Text(snippets.UNICODE_HEAVY_TEXT).render(self.console)\n\n def setup(self):\n self.console = Console(file=StringIO(), color_system=\"truecolor\", legacy_windows=False)\n self.len_lorem_ipsum = len(snippets.LOREM_IPSUM)",
|
||||
"code": "class TextSuite:\n def time_render_unicode_heavy(self):\n Text(snippets.UNICODE_HEAVY_TEXT).render(self.console)\n\n def setup(self):\n self.console = Console(\n file=StringIO(), color_system=\"truecolor\", legacy_windows=False\n )\n self.len_lorem_ipsum = len(snippets.LOREM_IPSUM)",
|
||||
"min_run_count": 2,
|
||||
"name": "benchmarks.TextSuite.time_render_unicode_heavy",
|
||||
"number": 0,
|
||||
|
@ -412,11 +412,11 @@
|
|||
"timeout": 60.0,
|
||||
"type": "time",
|
||||
"unit": "seconds",
|
||||
"version": "b3f1c09dfd06f412a20dacfe378c3b446727c7d4f9a975336eab3daa8543e1cb",
|
||||
"version": "71f96ca5c6fe650b498a68a82f7268a1cd3d4b003a01d620fa0456b0827311e2",
|
||||
"warmup_time": -1
|
||||
},
|
||||
"benchmarks.TextSuite.time_split": {
|
||||
"code": "class TextSuite:\n def time_split(self):\n Text(snippets.LOREM_IPSUM).split()\n\n def setup(self):\n self.console = Console(file=StringIO(), color_system=\"truecolor\", legacy_windows=False)\n self.len_lorem_ipsum = len(snippets.LOREM_IPSUM)",
|
||||
"code": "class TextSuite:\n def time_split(self):\n Text(snippets.LOREM_IPSUM).split()\n\n def setup(self):\n self.console = Console(\n file=StringIO(), color_system=\"truecolor\", legacy_windows=False\n )\n self.len_lorem_ipsum = len(snippets.LOREM_IPSUM)",
|
||||
"min_run_count": 2,
|
||||
"name": "benchmarks.TextSuite.time_split",
|
||||
"number": 0,
|
||||
|
@ -428,11 +428,11 @@
|
|||
"timeout": 60.0,
|
||||
"type": "time",
|
||||
"unit": "seconds",
|
||||
"version": "9c165854130cb95fea5491ffcd8b580a5bd373149da2ef8aace0e9480f649854",
|
||||
"version": "8ced6624e81ea79c121959a499bd08a83578f32be271fce55bad42196ba221b7",
|
||||
"warmup_time": -1
|
||||
},
|
||||
"benchmarks.TextSuite.time_split_unicode_heavy": {
|
||||
"code": "class TextSuite:\n def time_split_unicode_heavy(self):\n Text(snippets.UNICODE_HEAVY_TEXT).split()\n\n def setup(self):\n self.console = Console(file=StringIO(), color_system=\"truecolor\", legacy_windows=False)\n self.len_lorem_ipsum = len(snippets.LOREM_IPSUM)",
|
||||
"code": "class TextSuite:\n def time_split_unicode_heavy(self):\n Text(snippets.UNICODE_HEAVY_TEXT).split()\n\n def setup(self):\n self.console = Console(\n file=StringIO(), color_system=\"truecolor\", legacy_windows=False\n )\n self.len_lorem_ipsum = len(snippets.LOREM_IPSUM)",
|
||||
"min_run_count": 2,
|
||||
"name": "benchmarks.TextSuite.time_split_unicode_heavy",
|
||||
"number": 0,
|
||||
|
@ -444,11 +444,11 @@
|
|||
"timeout": 60.0,
|
||||
"type": "time",
|
||||
"unit": "seconds",
|
||||
"version": "d55b02f6d06f478d70635bac3409f3a9899137d9cee87a70a293b8ccf5a6afa4",
|
||||
"version": "edcdec63428ba276875d287976df2ef6ea68e66a44dfe252a80eecd7705aa47d",
|
||||
"warmup_time": -1
|
||||
},
|
||||
"benchmarks.TextSuite.time_wrapping": {
|
||||
"code": "class TextSuite:\n def time_wrapping(self):\n Text(snippets.LOREM_IPSUM).wrap(self.console, 12, overflow=\"fold\")\n\n def setup(self):\n self.console = Console(file=StringIO(), color_system=\"truecolor\", legacy_windows=False)\n self.len_lorem_ipsum = len(snippets.LOREM_IPSUM)",
|
||||
"code": "class TextSuite:\n def time_wrapping(self):\n Text(snippets.LOREM_IPSUM).wrap(self.console, 12, overflow=\"fold\")\n\n def setup(self):\n self.console = Console(\n file=StringIO(), color_system=\"truecolor\", legacy_windows=False\n )\n self.len_lorem_ipsum = len(snippets.LOREM_IPSUM)",
|
||||
"min_run_count": 2,
|
||||
"name": "benchmarks.TextSuite.time_wrapping",
|
||||
"number": 0,
|
||||
|
@ -460,11 +460,11 @@
|
|||
"timeout": 60.0,
|
||||
"type": "time",
|
||||
"unit": "seconds",
|
||||
"version": "8c821eba13d043f228fd902d8f678c397741855db05d02abe9b82f3d65cdf03d",
|
||||
"version": "7ee504db351412170e9e040a3c5f76a06ceb92b020dfd04c3d0ce3f2b7f5bc58",
|
||||
"warmup_time": -1
|
||||
},
|
||||
"benchmarks.TextSuite.time_wrapping_unicode_heavy": {
|
||||
"code": "class TextSuite:\n def time_wrapping_unicode_heavy(self):\n Text(snippets.UNICODE_HEAVY_TEXT).wrap(self.console, 12, overflow=\"fold\")\n\n def setup(self):\n self.console = Console(file=StringIO(), color_system=\"truecolor\", legacy_windows=False)\n self.len_lorem_ipsum = len(snippets.LOREM_IPSUM)",
|
||||
"code": "class TextSuite:\n def time_wrapping_unicode_heavy(self):\n Text(snippets.UNICODE_HEAVY_TEXT).wrap(self.console, 12, overflow=\"fold\")\n\n def setup(self):\n self.console = Console(\n file=StringIO(), color_system=\"truecolor\", legacy_windows=False\n )\n self.len_lorem_ipsum = len(snippets.LOREM_IPSUM)",
|
||||
"min_run_count": 2,
|
||||
"name": "benchmarks.TextSuite.time_wrapping_unicode_heavy",
|
||||
"number": 0,
|
||||
|
@ -476,8 +476,8 @@
|
|||
"timeout": 60.0,
|
||||
"type": "time",
|
||||
"unit": "seconds",
|
||||
"version": "ec6e2ef08b6cdee182fef4e26c0043f8c365984f9a31be07dbd792e1aed862d8",
|
||||
"version": "4db4b38f51b05f4dc11b5a2908c118fe556a7d36b9e1d85fd18e28885a384db0",
|
||||
"warmup_time": -1
|
||||
},
|
||||
"version": 2
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -6,4 +6,4 @@
|
|||
"os": "Darwin 21.2.0",
|
||||
"ram": "17179869184",
|
||||
"version": 1
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue