An excited quantum dot does not decay at a fixed rate: the rate follows the density of electromagnetic modes at its frequency. Put the dot in the middle of a micropillar cavity, tune it to the resonance and the emission is speeded up by the Purcell factor 3Q/(4 pi^2 V). This simulator computes the enhancement, the shortened lifetime and the share of photons going into the cavity mode from the closed-form weak-coupling theory, and checks it against the exact two-state eigenvalue problem, the dipole-moment route and a Monte Carlo sample of emission delays. It also shows where the formula stops being valid: when the coupling g exceeds a quarter of the cavity linewidth the system enters strong coupling.