Performance delta between Worker and Durable Object execution

Hi Cloudflare Community! :wave:

I’ve discovered what seems to be a regression in the execution performance of Durable Object vs Worker execution contexts.

I’ve created a minimal reproduction available here:
https://github.com/dpeek/test-case-slow-do

Essentially the same execution (parsing a 2MB JSON request body) takes 9ms in the worker context, and 32s in the durable object context. 32s looks suspiciously like a timeout of some sort, although the request does eventually complete!

Any suggestions or workarounds welcome!

Haha turns out this is an issue for smaller JSON payloads too (~800KB) and has broken our production environment as our proxy assumes the requests have timed out :sweat: