Benchmark code for frontend animation performance