crs 326 scripting cause reduce performance?

Hello,
i want add a script on my crs 326 that check all ports every 10 or 15 seconds and if any port use more than X unicast pps disable that port and after X minutes enable port again,
i want know if i add this script with one scheduler can i have full wire speed and layer 2 performance as you write on crs 326 datasheet?
thanks