> Will the DO billing charge for cold-starts etc ? No, you pay only the time after your DO is runnin

Will the DO billing charge for cold-starts etc ?
No, you pay only the time after your DO is running.

IF, Workers consumes 10ms (and hence billing time = 10ms) for above simple Use-case, is it "FAIRLY ACCURATE" to assume that the DO will also consume 10ms (and hence billing time = 10ms) for the same Use-case.
Assuming that the 10ms is actual round trip time for your operation, then yes, DOs should have similar performance as Workers. It's the same runtime so code behavior is identical.

One note, a DO is in a single location though, whereas a Worker can be anywhere or even smart placed. So, latencies might be different from Workers just because of where your DO will be located.
Was this page helpful?