7.09.2025 состоялся релизPithon 3.14!
На фоне хайпа про NoGIL всё позабыли про другие фичи. Особенно про Multiple Interpreters, который обещает изоляцию процессов но с эффективностью потоков! На сколько действительно это будет эффективно мы узнаем позже, потому что сейчас это лишь первый релиз с ограничениями и недоработками.
Но что там про NoGIL? Теперь этот режим не экспериментальный, а официально поддерживаемый, но опциональный.
Чтобы запустить без GIL нужна специальная сборка. И перед стартом нужно объявить переменную PYTHON_GIL=0
Для вас я собрал готовый репозиторий где достаточно запустить скрпит, который всё сделает:
▫️ соберет релизный Python 3.14 в новый Docker-образ
▫️ запустит тесты в контейнере (GIL, NoGIL, MultiInterpreter)
▫️ распечатает результаты
Тест очень простой, усложняйте сами)
Вот какие результаты у меня:
=== Running ThreadPoolExecutor GIL ON
TOTAL TIME: 45.48 seconds
=== Running ThreadPoolExecutor GIL OFF
TOTAL TIME: 6.14 seconds
=== Running basic Thread GIL ON
TOTAL TIME: 45.54 seconds
=== Running basic Thread GIL OFF
TOTAL TIME: 4.74 seconds
=== Running with Multi Interpreter
TOTAL TIME: 18.30 seconds
Если сравнивать GIL и NoGIL, то на мои 32 ядра прирост х7-x10 (почему не х32? 🤷). При этом нам обещают что скорости будут расти с новыми релизами.
Режим без GIL похож (визуально) на async, тоже параллельно, тоже не по порядку. Но это не IO! и от того некоторый диссонанс в голове 😵💫, нас учили не так!
Интересно, что чистый Thread работает быстрей чем ThreadPoolExecutor без GIL.
Ну и где-то плачет один адепт мульти-интерпретаторов😭 Теперь нужно искать где они могут пригодиться с такой-то скоростью. Скорее всего своя область применения найдется.
Отдельно я затестил память и вот что вышло на 32 потока:
ThreadPoolExecutor GIL ON
305.228 MB
ThreadPoolExecutor GIL OFF
500.176 MB
basic Thread GIL ON
90.668 MB
basic Thread GIL OFF
472.444 MB
with Multi Interpreter
1267.788 MB
Пока не знаю как к этому относиться)
В целом - радует направление развития!
#release
#POWR/USDT analysis :
#POWR has successfully broken above the trendline and is anticipated to continue its upward movement, with the potential to test previous highs. This breakout signals a bullish trend, suggesting further price appreciation in the near term.
TF : 1D
Entry : $0.3090
Target : $0.4500
SL : $0.2270
#POWR/USDT analysis :
#POWR is currently in an uptrend, trading above the 200 EMA. The price has bounced back from the support zone with strong volume. As a result, we can expect the price to maintain its bullish momentum and test higher levels.
TF : 2H
Entry : $0.3500
Target : $0.4200
SL : $0.3022
#POWR/USDT analysis :
#POWR is in a correction phase and has recently tested the resistance zone near the 200 EMA. The price is anticipated to be rejected from there and continue its downward direction. Wait for the break of the $0.1936 level for entry.
TF : 4H
Entry : $0.1936
Target : $0.1751
SL : $0.2058
#POWR👈
https://www.binance.com/en/trade/POWR_BTC
Buy at current 320-335
Highly pumpable Coin on the brink of 🚀
Buy in parts 👈strictly follow for max profits as its pump coin
Sell
🤑360-380
🤑380-410
🤑 410-440
🤑 440-470
🚀 470- 500 & above
Bullish above -300
#POWR👈
https://www.binance.com/en/trade/POWR_BTC
Buy at current 485-495
Highly pumpable Coin on the brink of 🚀
Buy in parts 👈strictly follow for max profits as its pump coin
Sell
🤑520-550
🤑 550-600
🤑 600-650
🤑 650-700
🚀 700- 750 & above
Bullish above -470
#POWR👈
https://www.binance.com/en/trade/POWR_BTC
Buy at current 525-540
Highly pumpable Coin on the brink of 🚀
Buy in parts 👈strictly follow for max profits as its pump coin
Sell
🤑 570-600
🤑 600-650
🤑 650-700
🚀 700- 750 & above
Bullish above -510
#POWR👈
https://www.binance.com/en/trade/POWR_BTC
Buy at current 605-610
Highly pumpable Coin on the brink of 🚀
Buy in parts 👈strictly follow for max profits as its pump coin
Sell
🤑 640-670
🤑 670-730
🤑 730-790
🚀 790- 850 & above
Stop Loss/Exit -590