test,report: relax CPU match requirements
Some CPUs have variable speeds, and so exact matches between what
`os.cpus()` and the report feature yield cannot always be expected:
```
>const results = []
>setInterval(() => results.push(os.cpus().map(({ speed }) => speed)), 1)
[...]
>results
[
[ 1198, 1150, 1195, 1149 ],
[ 1198, 1150, 1195, 1149 ],
[ 1198, 1150, 1195, 1149 ],
[ 1198, 1150, 1195, 1149 ],
[ 2401, 2420, 2429, 2413 ],
[ 2401, 2420, 2429, 2413 ],
[ 2401, 2420, 2429, 2413 ],
[ 2401, 2420, 2429, 2413 ],
[ 2401, 2420, 2429, 2413 ],
[ 2401, 2420, 2429, 2413 ],
[ 2401, 2420, 2429, 2413 ],
[ 2596, 2401, 2699, 2555 ],
[...]
```
Refs: https://github.com/nodejs/node/pull/28829
PR-URL: https://github.com/nodejs/node/pull/28884
Reviewed-By:
Gus Caplan <me@gus.host>
Reviewed-By:
Colin Ihrig <cjihrig@gmail.com>
Reviewed-By:
Richard Lau <riclau@uk.ibm.com>
Reviewed-By:
Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By:
Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By:
James M Snell <jasnell@gmail.com>
Reviewed-By:
Luigi Pinca <luigipinca@gmail.com>
Reviewed-By:
Rich Trott <rtrott@gmail.com>
parent
92ca2c20
Please register or sign in to comment