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
🚗✨ Exciting news! The updated Volvo XC90 is set to be unveiled on September 4th! 🌟
🔋 This refreshed model will feature a hybrid powertrain, ensuring it remains relevant until the brand transitions fully to electric vehicles by the end of the decade. ⚡️
Stay tuned for more updates!
#VolvoXC90#HybridPower#SustainableDriving#CarLaunch#Auto
🚗Exciting news for BMW fans! The new BMW M5 Touring will be unveiled on August 15 at Pebble Beach.
This innovative model will hit the US market in spring 2025, marking the first official M5 Touring available in the country.
Stay tuned for more updates!
#BMW#M5Touring#PebbleBeach#CarLaunch#Auto
🚗✨Introducing the Updated Kia K8 Sedan!🇰🇷
The all-new K8 features a completely redesigned front and a simplified interior architecture, enhancing both style and comfort. The rear has also been refreshed with the removal of fake exhaust tips. 🔥
Under the hood, South Korean buyers can choose from:
- 🛢️2.5L and 3.5L gasoline engines (198 or 300 hp)
- 🌱Hybrid powertrain based on a 1.6L engine delivering 230 hp
- 🔄 The 3.5L engine also offers a bi-fuel version with 240 hp and optional all-wheel drive!
💰 Starting price: 37.36 million won ( $27,000).
#KiaK8#Sedan#CarLaunch#KiaMotors#AutomotiveInnovation#LuxuryCars#Auto🚘🌟
🚗✨ Skoda Unveils the "Kulaak" in India! 🇮🇳
Introducing the new Kylaq crossover, measuring under 4 meters, set to hit the market in 2025! The name was chosen through a public vote and translates to "crystal" from Sanskrit. 💎
🔧 Engine Specs:
- 🏎️ 1.0 TSI engine with 115 hp
- 🔄 Available with a manual or automatic transmission
- 🚙 Front-wheel drive only
#SkodaKylaq#Crossover#CarLaunch#India#Innovation#Skoda#Automotive#Auto
🚘✨Introducing the Skoda Elroq Electric Crossover!✨🚘
The new Skoda Elroq is slightly larger than the Karoq, measuring 4488x1884x1625 mm with a wheelbase of 2765 mm. With a ground clearance of 186 mm, it’s ready for any adventure! 🌍💪
⚡️Performance Features:
- Available with electric motors producing 170, 204, or 286 hp.
- The top all-wheel-drive version boasts an impressive 299 hp! 🚀
- Range: From 375 to 560 km on a single charge! 🔋🌿
✅Simply Clever Innovations:
- Tire tread depth gauge integrated into the ice scraper! ❄️
- Elastic net under the luggage shelf for convenient charging cable storage! 📦🔌
ℹ️ The petrol Karoq starts at €33,100 in Germany, while the Elroq will be just €760 more! 💰🇩🇪
#SkodaElroq#ElectricCrossover#SimplyClever#SustainableDriving#CarLaunch#Auto#Innovation#Skoda
Audi has officially unveiled the new generation A6!
Now, this index belongs to electric vehicles — a liftback and an estate version.
🚘 The exterior of the new models is almost entirely copied from the namesake concepts, while the interior is inspired by the Q6 e-tron crossover.
🚢 The base version will be the rear-wheel drive A6 e-tron performance with a single motor producing 367 hp. For the S6, there will be two motors delivering 550 hp and accelerating from 0 to 100 km/h in just 3.9 seconds, with a top speed of 240 km/h.
🔋 In both cases, a 100 kWh battery is provided, allowing the single-motor versions to travel up to 756 km, while the all-wheel drive versions can reach up to 675 km.
ℹ️ Pre-orders will start in September, with prices starting at €75,600 for the standard version and €99,500 for the S6.
#Audi#A6#ElectricVehicles#ETRON#CarLaunch#LuxuryCars#Innovation#S6#Auto