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
🌊 GuAsia Winner Has Arrived at Songkran. Congratulation winners!🇹🇭
From the leaderboard to the land of water fights and tradition, our GuAsia winners have officially landed in Bangkok to experience the legendary Songkran Water Festival - live and in person! 🛫💧
A round-trip ticket to Bangkok from April 13 to April 15 to experience one of the most iconic cultural events on Earth has already been sent straight to the winner’s wallet, along with a personal notification. ✈️
🏆 As part of Gumart’s biggest campaign ever, Gu Go Global, this was Asia’s turn to shine—and the energy was real.
🏁With more giveaways coming to every continent, your chance might be just around the corner!
#GuGoGlobal#GuAsia
⏱ 2 DAYS LEFT — Don’t Miss This! 🚨
💥 The clock is ticking. Only 48 hours remain before our GuAsia Mini-Game officially closes.
❗️ What’s at stake?
Top 5 players on the leaderboard will secure exclusive rewards, including real-world travel experiences, not just digital prizes.
🌍 This isn’t just a game.
It’s your chance to turn activity into real movement, rewards into real journeys, and rankings into real recognition. 👀
🔥 Final push starts NOW:
1️⃣ Invite more friends
2️⃣Climb the leaderboard
3️⃣Lock in your spot
⏰ 2 days left.
Once it’s over — it’s over.
#GuGoGlobal#GuAsia#FinalCountdown
🌊 Gumart in Songkran – Thailand 🇹🇭
🌐#GuGoGlobal Campaign – Taking Web3 to the Heart of Culture!
📍 Checkpoint: Songkran Festival, Bangkok, Thailand
One of our GuAsia winners has just shared their unforgettable journey at the legendary Songkran Festival in Bangkok - after receiving their exclusive reward from the #GuGoGlobal giveaway. 😱
From vibrant street parades to joyful water fights, this was more than just a trip - it was a moment where Web3 met real-world celebration, and Gumart became part of the experience.⭐️
💡 This is what Gu Go Global is all about: bringing crypto utility to real life, through people, places, and culture.
🎉And yes - more giveaways are coming to every continent. Your city might be next.
#GuGoGlobal#GuAsia#Songkran
🎉 GuAsia Activation: Fly to Songkran Festival with Gumart!🇹🇭
As part of Gumart’s biggest-ever global campaign, Gu Go Global (April–May 2025), we’re bringing the celebration to Asia with a special giveaway!📈
✈️ Prize: Round-trip flight ticket to Bangkok, Thailand, to experience the iconic Songkran Water Festival live! 💧
🗓 Duration: April 8 - April 13
📌 How to join: Top 3 referral leaderboard in Asia will receive special prizes – including a flight to Songkran!
Be bold, be global. This is your moment. See you in Asia!🔼
#GuGoGlobal#GuAsia#SongkranFestival