/wtu

To reproduce worker_thread event loop utilization bug

Primary LanguageJavaScript

Example output

$ node wtu.js

1927.167074 16.46923407962049 0.008473413473065164
2002.8241400000002 -0.00007002319352977793 -3.496222887444568e-8
2002.119932 0.0010480243372512632 5.234570476547944e-7
2003.0874409999997 -0.0009080495983653236 -4.5332519760283763e-7
1982.729174000001 20.269220012450205 0.010119438973611183
2002.6981469999992 0.00027900822533410974 1.393161455118475e-7
2002.6676960000004 -0.0003499993290461134 -1.7476658304988216e-7
2001.9222119999995 0.0009080218205781421 4.535747709273896e-7
2001.8526500000007 0.00041894779315043706 2.092799914484447e-7
Bye

Workaround output

$ node workaround.js

1956.974389 10.556542987899775 0.005365375870982595
2001.478078 0.8369050102919573 0.00041796870991483537
2002.760639 0.11991698735801037 0.000059872260979085204
2003.2773930000003 0.11069701445740066 0.00005525490293625625
1986.0997079999988 17.349493941491346 0.008659812250132624
2003.1432280000008 0.21308499018778093 0.00010636399965702183
2002.7891340000006 0.11831000024358218 0.0000590691300279414
2002.5386849999995 0.13465305561112473 0.00006723665465175612
2001.8013019999999 0.3765829363346711 0.0001880866526235983
Bye