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

Bad data issue #18

Open
ybAttGit opened this issue Sep 18, 2023 · 0 comments
Open

Bad data issue #18

ybAttGit opened this issue Sep 18, 2023 · 0 comments

Comments

@ybAttGit
Copy link

Hi!
For this node.js file:

const {performance} = require('perf_hooks');
const {eventLoopUtilization} = require('node:perf_hooks').performance;
setImmediate(() => {
    const start = performance.now();
    const elu = eventLoopUtilization();
    let sum = 0;
    for (let i = 0; i < 1000000; i++) {
        sum += i;
    }
    const end = performance.now();
    console.log(`ELU utilization: ${eventLoopUtilization(elu).utilization}`);
    console.log(`Elapsed time: ${(end - start).toFixed(2)} milliseconds`);
}); 

I get the message Bad Data:
Doctor has found data analysis issue:
Something went wrong with the data analysis
Try running the benchmark for a longer time
If the issue persists, open an issue at https://github.com/clinicjs/node-clinic-doctor
What exactly should be the fix?

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