From a6492eb1d0730919e8a64d548b4de9de2e5c9093 Mon Sep 17 00:00:00 2001 From: Leon Morten Richter Date: Sat, 17 Dec 2022 14:30:17 +0100 Subject: [PATCH] adds a note about performance in python3.11 --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 4f9ae95..d362e86 100644 --- a/README.md +++ b/README.md @@ -270,5 +270,19 @@ $ make test Now you are ready to start developing on the project! Don't forget to add tests for every new change or feature! +# Funfacts +## Python3.11 is faster +With Python3.11 significant improvements to the CPython Runtime were made: + +- [What's new with Python 3.11](https://docs.python.org/3/whatsnew/3.11.html) +- [Faster CPython](https://docs.python.org/3/whatsnew/3.11.html#whatsnew311-faster-cpython) + +Some results from the internal [performance test](https://github.com/M0r13n/pyais/blob/master/tests/test_file_stream.py#L155): + +**3.10:** +`Decoding 82758 messages took: 3.233757972717285` + +**3.11:** +`Decoding 82758 messages took: 2.5866270065307617`