What is the accuracy of akka scheduler?


(Pritam Kadam) #1

Do you have any performance numbers or benchmark’s written for measuring Akka scheduler’s accuracy?

By accuracy I mean, If you schedule a task to run, say for every 50 millis, how much it jitters?
I was searching for exact numbers like scheduler has +- x µs/ms jitter but could not find it anywhere.

I looked at ScheduleBenchmark but it is measuring throughput for single schedule.


(Patrik Nordwall) #2

It’s guaranteed to not run the task too early, and the resolution is 10 ms (default config). However, they can be delayed longer if it doesn’t get the chance to run due to GC pauses or other thread scheduling issues.


(Patrik Nordwall) #3

By the way, there was a similar question some time ago Akka scheduler tick duration to 1ms