Skip to content

Commit

Permalink
Update benchmarks in readme
Browse files Browse the repository at this point in the history
Python3.11
colorama==0.4.6
Colr==0.9.1
pastel==0.2.1
plumbum==1.8.2
termcolor==2.3.0
  • Loading branch information
gvalkov committed Aug 7, 2023
1 parent 6a9a6ca commit bd236ea
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ Building a template string may also be sufficient:

``` python
>>> from ansimarkup import parse
>>> s = parse("<b><r>%s</r></b>")
>>> s = parse("<b><r>%s</r></b>")
>>> print(s % "<l type='V'>2.0</l>")
<l type='V'>2.0</l> # printed in bold red
```
Expand Down Expand Up @@ -249,20 +249,21 @@ processing to a minimum. The [benchmark.py] script attempts to benchmark
different ansi escape code libraries:

Benchmark 1: <r><b>red bold</b></r>
colorama 0.2998 μs
termcolor 3.2339 μs
colr 3.6483 μs
ansimarkup 6.8679 μs
pastel 28.8538 μs
plumbum 53.5004 μs
colorama 0.2187 μs
colr 2.2246 μs
ansimarkup 4.3115 μs
termcolor 5.5184 μs
pastel 15.8153 μs
plumbum 20.7330 μs

Benchmark 2: <r><b>red bold</b>red</r><b>bold</b>
colorama 0.8269 μs
termcolor 8.9296 μs
ansimarkup 9.3099 μs
colr 9.6244 μs
pastel 62.2018 μs
plumbum 120.8048 μs
colorama 0.6065 μs
colr 5.7539 μs
ansimarkup 6.1549 μs
termcolor 15.8615 μs
pastel 33.2524 μs
plumbum 47.0624 μs


## Limitations

Expand Down

0 comments on commit bd236ea

Please sign in to comment.