Next.js Discord

Discord Forum

NextJS Server Action Execution Time?

Unanswered
Tan posted this in #help-forum
Open in Discord
TanOP
I am hosting my nextjs app on Vercel with a hobby plan. Do you know what is the execution time of a server action?

1 Reply

Spectacled Caiman
If you just want to find out how long running a server action takes you can use a library like Benchmark and console.log the output.

Or if you want to go vanilla, get the timestamps before and after invoking and awaiting the action, and calculate the difference