Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

console.time() / timeEnd() gives inaccurate results #85

Open
lbogdan opened this issue May 27, 2021 · 0 comments
Open

console.time() / timeEnd() gives inaccurate results #85

lbogdan opened this issue May 27, 2021 · 0 comments

Comments

@lbogdan
Copy link

lbogdan commented May 27, 2021

Consider this code:

console.time("merge");
for (let i = 0; i < 100000; i++) {
  merge(obj, a);
  shallowEqual(a, b);
}
console.timeEnd("merge");

Expected output (from Chrome's console):

image

Actual output:

image

Reproduction sandbox: https://codesandbox.io/s/console-feed-time-timeend-n2v9n
(be warned it can be a bit taxing on the CPU)

Related CodeSandbox issue: codesandbox/codesandbox-client#5077

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant