python 3.14.6  free-threaded build: False  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    13,136,675 ( 1.0x)    13,136,675 ( 1.0x)
add(1, 2)                  2    12,669,307 ( 1.0x)    10,889,747 ( 0.8x)
add(1, 2)                  4    13,707,300 ( 1.0x)    10,307,233 ( 0.8x)
work(1000,)                1       460,918 ( 1.0x)       460,918 ( 1.0x)
work(1000,)                2       441,880 ( 1.0x)       442,832 ( 1.0x)
work(1000,)                4       431,028 ( 0.9x)       404,576 ( 0.9x)
work(100000,)              1         4,767 ( 1.0x)         4,767 ( 1.0x)
work(100000,)              2         4,522 ( 0.9x)         4,534 ( 1.0x)
work(100000,)              4         4,535 ( 1.0x)         4,306 ( 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 994 ms; short calls completed while it ran: 0; the first one after 994 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:  Trap: Call stack exhausted
   recurse  in the main thread:                            Trap: Call stack exhausted

4. how deep the recursion goes before the trap, and a thread with a small stack
   depth reached before the trap (main thread): 499  (Call stack exhausted)
   thread with a   32 KiB stack: CRASH, exit code 1
   thread with a   64 KiB stack: 499
   thread with a  256 KiB stack: 499
   thread with a 1024 KiB stack: 499
