variation_loop.py: add event processing rate