You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How often does it reproduce? Is there a required condition?
The issue reproduces consistently every time the code is executed.
What is the expected behavior? Why is that the expected behavior?
The expected behavior is that the execution time of date.toLocaleString should be reasonably fast, comparable to the performance observed in web browsers. It should be able to perform this relatively simple task efficiently.
What do you see instead?
When running the code in Node.js, the execution time of date.toLocaleString is observed to be significantly slower compared to running it in a web browser. The reported execution time is around 20-30 milliseconds, which is much longer than expected for such a straightforward operation. In contrast, when executed in a browser environment, the same code completes in approximately 0.3-0.4 milliseconds.
Additional information
No response
The text was updated successfully, but these errors were encountered:
Version
v19.8.1
Platform
Microsoft Windows NT 10.0.22621.0 x64
Subsystem
No response
What steps will reproduce the bug?
Run the following code in Node.js:
How often does it reproduce? Is there a required condition?
The issue reproduces consistently every time the code is executed.
What is the expected behavior? Why is that the expected behavior?
The expected behavior is that the execution time of
date.toLocaleString
should be reasonably fast, comparable to the performance observed in web browsers. It should be able to perform this relatively simple task efficiently.What do you see instead?
When running the code in Node.js, the execution time of
date.toLocaleString
is observed to be significantly slower compared to running it in a web browser. The reported execution time is around 20-30 milliseconds, which is much longer than expected for such a straightforward operation. In contrast, when executed in a browser environment, the same code completes in approximately 0.3-0.4 milliseconds.Additional information
No response
The text was updated successfully, but these errors were encountered: