... ray: overhead


You can measure the overhead of ray with a small experiment.

import time

def just_sleep(t):
    return t

def ray_sleep(t):
    return t

This command took 26.1s on our machine. It's quite long.

results = ray.get([ray_sleep.remote(t) for t in range(100_000)])

This code only took 13.4s on our machine. Much faster!

results = [just_sleep(t) for t in range(100_000)]

Feedback? See an issue? Something unclear? Feel free to mention it here.

If you want to be kept up to date, consider signing up for the newsletter.