Linux::Event::Fork examples

This directory contains both usage examples and stress tests.

The stress tests are intentionally small and self-contained so you can run them under strace, perf, valgrind, or with different loop backends.

Stress tests

90_stress_timeout_churn.pl

What it stresses

Controls

Expected

Run:

perl -Ilib examples/90_stress_timeout_churn.pl
N=1000 TIMEOUT=0.01 perl -Ilib examples/90_stress_timeout_churn.pl

91_stress_stdin_with_timeout.pl

What it stresses

Controls

Expected

Run:

perl -Ilib examples/91_stress_stdin_with_timeout.pl
TIMEOUT=0.03 perl -Ilib examples/91_stress_stdin_with_timeout.pl
MB=20 TIMEOUT=0.05 perl -Ilib examples/91_stress_stdin_with_timeout.pl