Repository navigation
timers: fix unsafe array iteration - #37223
Conversation
|
Benchmark CI for timers: https://ci.nodejs.org/view/Node.js%20benchmark/job/benchmark-node-micro-benchmarks/930/ Benchmark results |
|
New Benchmark CI (using Benchmark results |
|
Benchmark results are a bit weird, I kicked off a new benchmark CI to see if it's just a flakiness. |
|
I think |
aduh95
left a comment
There was a problem hiding this comment.
Benchmark CI results look good π
Details
confidence improvement accuracy (*) (**) (***)
timers/immediate.jstype='breadth1' n=5000000 1.00 % Β±4.06% Β±5.41% Β±7.04%
timers/immediate.jstype='breadth4' n=5000000 -1.00 % Β±4.15% Β±5.53% Β±7.21%
timers/immediate.jstype='breadth' n=5000000 3.12 % Β±4.05% Β±5.38% Β±7.01%
timers/immediate.jstype='clear' n=5000000 -0.04 % Β±2.15% Β±2.86% Β±3.72%
timers/immediate.jstype='depth1' n=5000000 -0.03 % Β±1.74% Β±2.31% Β±3.02%
timers/immediate.jstype='depth' n=5000000 0.75 % Β±2.22% Β±2.95% Β±3.85%
timers/set-immediate-breadth-args.jsn=5000000 0.19 % Β±4.62% Β±6.16% Β±8.03%
timers/set-immediate-breadth.jsn=10000000 * 4.00 % Β±3.89% Β±5.18% Β±6.74%
timers/set-immediate-depth-args.jsn=5000000 * 2.03 % Β±1.80% Β±2.40% Β±3.14%
timers/timers-breadth-args.jsn=1000000 -5.37 % Β±5.51% Β±7.33% Β±9.54%
timers/timers-breadth.jsn=5000000 0.81 % Β±3.38% Β±4.50% Β±5.86%
timers/timers-cancel-pooled.jsn=5000000 1.91 % Β±10.69% Β±14.22% Β±18.51%
timers/timers-cancel-unpooled.jsdirection='end' n=1000000 -0.92 % Β±5.95% Β±7.91% Β±10.30%
timers/timers-cancel-unpooled.jsdirection='start' n=1000000 0.18 % Β±6.67% Β±8.89% Β±11.58%
timers/timers-depth.jsn=1000 -0.13 % Β±0.65% Β±0.87% Β±1.14%
timers/timers-insert-pooled.jsn=5000000 -0.54 % Β±2.80% Β±3.74% Β±4.88%
timers/timers-insert-unpooled.jsdirection='end' n=1000000 1.44 % Β±4.47% Β±5.95% Β±7.74%
timers/timers-insert-unpooled.jsdirection='start' n=1000000 0.55 % Β±5.13% Β±6.82% Β±8.88%
timers/timers-timeout-nexttick.jsn=50000 0.14 % Β±2.20% Β±2.93% Β±3.83%
timers/timers-timeout-nexttick.jsn=5000000 0.13 % Β±3.60% Β±4.80% Β±6.25%
timers/timers-timeout-pooled.jsn=10000000 * 8.82 % Β±8.47% Β±11.29% Β±14.72%
timers/timers-timeout-unpooled.jsn=1000000 0.62 % Β±13.21% Β±17.58% Β±22.88%
Be aware that when doing many comparisons the risk of a false-positive
result increases. In this case, there are 22 comparisons, you can thus
expect the following amount of false-positive results:
1.10 false positives, when considering a 5% risk acceptance (*, **, ***),
0.22 false positives, when considering a 1% risk acceptance (**, ***),
0.02 false positives, when considering a 0.1% risk acceptance (***)
|
Ping @nodejs/timers |
Fixes: nodejs#37222 PR-URL: nodejs#37223 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
89f304f to
c0e66e3
Compare
|
Landed in c0e66e3 |
Fixes: #37222