<frozen importlib._bootstrap>:491: RuntimeWarning: The global interpreter lock (GIL) has been enabled to load module 'ft', which has not declared that it can run safely without the GIL. To override this behavior and keep the GIL disabled (at your own risk), run with PYTHON_GIL=0 or -Xgil=0.
python 3.14.6  free-threaded build: True  GIL enabled after import: True

1. throughput: calls per second, all threads together (higher is better); speed-up over 1 thread in brackets
call                 threads          own instance         same instance
add(1, 2)                  1    23,080,058 ( 1.0x)    23,080,058 ( 1.0x)
add(1, 2)                  2    20,711,613 ( 0.9x)    19,911,799 ( 0.9x)
add(1, 2)                  4    17,880,483 ( 0.8x)    21,751,077 ( 0.9x)
work(1000,)                1       449,739 ( 1.0x)       449,739 ( 1.0x)
work(1000,)                2       436,193 ( 1.0x)       424,500 ( 0.9x)
work(1000,)                4       418,842 ( 0.9x)       409,506 ( 0.9x)
work(100000,)              1         4,723 ( 1.0x)         4,723 ( 1.0x)
work(100000,)              2         4,462 ( 0.9x)         4,454 ( 0.9x)
work(100000,)              4         4,273 ( 0.9x)         4,307 ( 0.9x)

2. a short call (add, then a 1 ms sleep, in a loop) in one thread while another thread is inside a long call (work(500000000), about 0.5 s)
   the long call took 1,088 ms; short calls completed while it ran: 0; the first one after 1,088 ms

3. traps in worker threads (each in a subprocess: a crash is a result)
   trap     in a thread other than the one that imported:  Trap: Unreachable instruction executed
   trap     in the main thread:                            Trap: Unreachable instruction executed
   oob      in a thread other than the one that imported:  Trap: Out-of-bounds access in linear memory or a table
   oob      in the main thread:                            Trap: Out-of-bounds access in linear memory or a table
   recurse  in a thread other than the one that imported:  CRASH, exit code -11
   recurse  in the main thread:                            Trap: Call stack exhausted
