measuring event performance