Skip to content

Commit

Permalink
chore: Python release 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Stranger6667 committed Aug 7, 2020
1 parent 016289d commit 7252efe
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
5 changes: 4 additions & 1 deletion python/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## [Unreleased]

## [0.5.0] - 2020-08-07

### Performance

- Avoid string allocation in `get_full_url`
Expand Down Expand Up @@ -68,7 +70,8 @@

- Initial public release

[Unreleased]: https://github.com/Stranger6667/css-inline/compare/python-v0.4.0...HEAD
[Unreleased]: https://github.com/Stranger6667/css-inline/compare/python-v0.5.0...HEAD
[0.5.0]: https://github.com/Stranger6667/css-inline/compare/python-v0.4.0...python-v0.5.0
[0.4.0]: https://github.com/Stranger6667/css-inline/compare/python-v0.3.2...python-v0.4.0
[0.3.2]: https://github.com/Stranger6667/css-inline/compare/python-v0.3.1...python-v0.3.2
[0.3.1]: https://github.com/Stranger6667/css-inline/compare/python-v0.3.0...python-v0.3.1
Expand Down
18 changes: 9 additions & 9 deletions python/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,20 +67,20 @@ library has good performance characteristics. In comparison with other Python pr

For inlining CSS in the html document from the ``Usage`` section above we have the following breakdown in our benchmarks:

- ``css_inline 0.4.0`` - 23.84 us
- ``premailer 3.7.0`` - 331 us (**x13.9**)
- ``inlinestyler 0.2.4`` - 2.45 ms (**x102.8**)
- ``pynliner 0.8.0`` - 2.81 ms (**x118.04**)
- ``css_inline 0.5.0`` - 22.88 us
- ``premailer 3.7.0`` - 331 us (**x14.48**)
- ``inlinestyler 0.2.4`` - 2.43 ms (**x106.43**)
- ``pynliner 0.8.0`` - 2.76 ms (**x120.76**)

And for a more realistic email:

- ``css_inline 0.4.0`` - 491.63 us
- ``premailer 3.7.0`` - 3.31 ms (**x6.74**)
- ``inlinestyler 0.2.4`` - 61.78 ms (**x125.68**)
- ``pynliner 0.8.0`` - 92.68 ms (**x188.52**)
- ``css_inline 0.5.0`` - 469.57 us
- ``premailer 3.7.0`` - 3.32 ms (**x7.09**)
- ``inlinestyler 0.2.4`` - 63.15 ms (**x125.58**)
- ``pynliner 0.8.0`` - 90.66 ms (**x189.20**)

You can take a look at the benchmarks' code at ``benches/bench.py`` file.
The results above were measured with ``rustc 1.46``, ``Python 3.8`` on i8700K, and 32GB RAM.
The results above were measured with stable ``rustc 1.45.2``, ``Python 3.8`` on i8700K, and 32GB RAM.

Python support
--------------
Expand Down
2 changes: 1 addition & 1 deletion python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
def call_setup():
setup(
name="css_inline",
version="0.4.0",
version="0.5.0",
description="Fast CSS inlining written in Rust",
long_description=open("README.rst", encoding="utf-8").read(),
long_description_content_type="text/x-rst",
Expand Down

0 comments on commit 7252efe

Please sign in to comment.