Javascript scripts use high amount of cpu time when nothing is happening

Looks like the node environment for empty’ish script is using resources when nothing is happening.
Up to 0.06 idle compared to 0.00 lua’s
Here is my example that replicates the issue:

./test1/config.js
console.log(I'm a config file)

./test1/client/main.js
console.log(Hello, I'm not doing anything on client side)

./test1/server/main.js
console.log(Hello, I'm not doing anything on server side)

I have created multiple copies of the resources and this is what Resource Monitors shows:
image

All test resources are 100% same.
Lua scripts doesn’t consume almost anything, they sit at about 0.08% of frame time compared to JS

Client version - Release
FXServer version - 2949

What you expected to happen:
Empty JS Resources use as much resources as Empty Lua resources.

What actually happens
Empty JS Resources use considerably more resources when not doing anything (at least according to Resource Monitor)

Attached the sample resource.
test1.zip (1.3 KB)

3 Likes

Can confirm

I experience the same.

Not a bug. 20-80us of time is apparently normal for V8 entry, and still extremely minimal.