-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 almost always shows 0ms in CodeSandbox console - but real results are available in the browser's console #5077
Comments
Thanks for your bug report. I can indeed reproduce this. We're going to investigate, and will get back to you. |
Seems to be an issue with Console Feed in Firefox, trying to figure this out with Sam that made console-feed |
@SaraVieira @sannek actually the issue exists in Chrome too. Although the output in Chrome differs from that in Firefox, neither matches the output in the console. |
I noticed but honestly also not fully sure how close you can even get when its a console emulation 🤔 |
@SaraVieira what stood out to me was the way the outputs differ. In Chrome the emulated console shows: But in the real console it shows Maybe it's not at all surprising since Chrome natively includes fractional milliseconds and Firefox does not - but it struck me as odd since I figured whatever logic caused this issue would cause the same issue in Chrome. |
Ever since I started working on CodeSandbox I found out a lot of things come from the underlying architecture of the browser and even sometimes how that browser would even interact with the OS underneath. It is a weird one tho and I will keep you updated |
This issue has automatically been marked stale because there has been no activity in a while. Please leave a comment if the issue has not been resolved, or if it is not stale for any other reason. After 2 weeks, this issue will automatically be closed, unless a comment is made or the stale label is removed. |
@SaraVieira @sannek, is this still an issue? The repro I shared no longer seems to run for me so I can't check in a flash. |
This issue has automatically been marked stale because there has been no activity in a while. Please leave a comment if the issue has not been resolved, or if it is not stale for any other reason. After 2 weeks, this issue will automatically be closed, unless a comment is made or the stale label is removed. |
Can't readily test to see if this is stale because the repro sandbox seems to no longer function.
I haven't made any changes since sharing I'm 99.999% sure. Any thoughts here? |
I can still reproduce this in the linked sandbox, will open an issue against console-feed . |
This issue has automatically been marked stale because there has been no activity in a while. Please leave a comment if the issue has not been resolved, or if it is not stale for any other reason. After 2 weeks, this issue will automatically be closed, unless a comment is made or the stale label is removed. |
Not stale, but issue is in third-party dependency I think, as per @lbogdan. |
🐛 bug report
Preflight Checklist
Contributing Guidelines
for this project.
Code of Conduct
that this project adheres to.
to file, without success.
Description of the problem
I'm doing some benchmarking and I noticed that when dealing with times like 24000ms, instead CodeSandbox shows 0ms, or in some cases 1ms.
To Reproduce
Link to sandbox: https://codesandbox.io/s/infallible-tdd-ex27s?file=/src/index.js
Your Environment
The text was updated successfully, but these errors were encountered: