JS Code node is super slow (1–2 min) while Python node is instant

In multiple workflows, my code (JS) nodes take 60–120s to run trivial logic, but Python nodes in the same workflow finish instantly.

This simple JS takes ~90s, no errors, just a long gap between “Start” and “Finish” in logs.

Env: n8n version: Self-hosted

Tried: new workflows, fresh instance, restart, same result.

Is there a known slowdown with the JS Code sandbox/engine?

Any settings/flags to check that impact JS Code startup?

What else should I inspect (Node.js version compatibility, container limits, logs)?

hello @moe312412

Please, share the workflow.

You can select all nodes with Ctrl+A and copy them with Ctrl+C. Then, past the content after pressing the button </> with Ctrl+V.