Add benchmark for event hooking.