News for hackers. Stuff that matters.

rbenchmark

Re:Instrumenting Python GIL with eBPF on Saturday July 20, 2024 @04:47PM (#41019717)
30-50% is an understatement. The latest beta is more than 100% slower in a simple benchmark:

https://news.ycombinator.com/item?id=41019626

Python-3.13 is more than 100% slower with –disable-gil

Python-3.13.0b3 is over 100% slower with --disable-gil compared to --enable-gil.Benchmark: sum = 0.0 def f(): global sum for i in range(10000): for j in range(10000): sum += i*j return sum print(f()) Build A: ./configure --enable-gil: 8 secondsBuild B: ./configure --disable-gil: 20 seconds

( Read More... | 6 comments | 7 points | on HN )