python 3.14.6  free-threaded build: True  GIL enabled after import: False

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,578,170 ( 1.0x)    23,578,170 ( 1.0x)
add(1, 2)                  2    37,369,059 ( 1.6x)    41,390,543 ( 1.8x)
add(1, 2)                  4    55,092,518 ( 2.3x)    44,979,168 ( 1.9x)
work(1000,)                1       455,780 ( 1.0x)       455,780 ( 1.0x)
work(1000,)                2       890,968 ( 2.0x)       849,406 ( 1.9x)
work(1000,)                4     1,740,913 ( 3.8x)     1,819,885 ( 4.0x)
work(100000,)              1         4,751 ( 1.0x)         4,751 ( 1.0x)
work(100000,)              2         8,881 ( 1.9x)         9,233 ( 1.9x)
work(100000,)              4        17,729 ( 3.7x)        18,697 ( 3.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,068 ms; short calls completed while it ran: 944; the first one after 0 ms; longest pause between two of them 4.1 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
