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
🤔Why join the NFT Trading Contest?
1️⃣Total prize pool of 0.1 ETH (~$350)
2️⃣Win up to 0.01 ETH (~$35) per winner
3️⃣Owning an NFT grants you a seat in our exclusive airdrop event 🎁
4️⃣Special benefit: Owning NFT allows to use RUBY within our SocialFi partners ecosystem 🌐
5️⃣Time to grab your SingSing NFTs is coming to an end soon ⏳
Don’t miss out - Trade Now🚀
Read more and Open Treasure at: X Post
#NFT#Crypto#TradingContest#SingSing
🚀$SING Trading Contest on CoinEx is COMING!
💰 Prize Pool: 500,000 $SING(~$9,000)
🗓 Duration: 10AM UTC, Nov 14 - 10AM UTC, Nov 21
Note:
✅All CoinEx users who apply on the promotion page can join (Market Makers excluded).
✅Rewards are based on Spot trading volume ranking. Cumulative volume = Buying + Selling volume in selected markets. Self-matching orders won’t be counted.
✅Market Making accounts are excluded from this event.
✅Sub-accounts cannot join independently; their volume will be counted in the main accounts.
✅Any cheating (batch registration, self-dealing, etc.) will result in disqualification.
✅FAQ About Spot Trading Volume Ranking
🔗 Full details: https://www.coinex.com/en/announcements/detail/32123383532948
#SingSing#TradingContest#CoinEx
🚀2️⃣Separate $SING Trading Contests are NOW LIVE!
✅$SING Trading Contest on BingX
💰 Prize Pool: 2,800,000 $SING (~$50,400)
🗓 Duration: 12PM UTC, Nov 14 - 12PM UTC, Nov 21
Contest is exclusive to newly registered accounts on BingX from 12PM UTC, Nov 14 onwards.
🔗 Full details: https://bingx.com/en/act/contest2/7777/?randomId=6898941344&ref=0PUIUW
✅$SING Trading Contest on CoinEx
💰 Prize Pool: 500,000 $SING (~$9,000)
🗓 Duration: 10AM UTC, Nov 14 - 10AM UTC, Nov 21
🔗 Full details: https://www.coinex.com/en/announcements/detail/32123383532948
------------------------------
Note: You can participate and receive rewards from 2 contests at the same time
Good luck! 🌟
#SingSing#TradingContest#BingX#Coinex
🚀🚀Have you checked our Trading Contest Leaderboard today?
📊 Keep climbing the ranks for a chance to win $35 each! 💰
#SingSing#TradingContest#Leaderboard#WinBig
🚀 Don't miss out on our exciting ongoing programs at SingSing! 🌟
1️⃣NFT Trading Contest with reward of $35 per winner🏆
2️⃣ Invite Frens to get 20% cashback when your friends claim RUBY and 5% every time their referrals claim it👥
3️⃣ Play to Air with Cowtopia🐄
4️⃣ Boost RUBY by buying Boost Item💎
Join now and get the most out of your SingSing experience!
#SingSing#TradingContest#InviteFrens#PlayToAir#BoostRUBY