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    15,360,556 ( 1.0x)    15,360,556 ( 1.0x)
add(1, 2)                  2    11,967,568 ( 0.8x)    12,745,349 ( 0.8x)
add(1, 2)                  4    11,506,358 ( 0.7x)    12,447,943 ( 0.8x)
work(1000,)                1       472,743 ( 1.0x)       472,743 ( 1.0x)
work(1000,)                2       414,470 ( 0.9x)       424,993 ( 0.9x)
work(1000,)                4       425,240 ( 0.9x)       430,062 ( 0.9x)
work(100000,)              1         4,663 ( 1.0x)         4,663 ( 1.0x)
work(100000,)              2         4,796 ( 1.0x)         4,697 ( 1.0x)
work(100000,)              4         4,674 ( 1.0x)         4,766 ( 1.0x)

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 950 ms; short calls completed while it ran: 1; the first one after 950 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): 99,999  (Call stack exhausted)
   thread with a   32 KiB stack: CRASH, exit code 1
   thread with a   64 KiB stack: CRASH, exit code -11
   thread with a  256 KiB stack: CRASH, exit code -11
   thread with a 1024 KiB stack: CRASH, exit code -11
