Last active
September 29, 2021 13:23
-
-
Save felipeplets/c186c9bbba6cef008da03462f4f05ef3 to your computer and use it in GitHub Desktop.
async static code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"title":"async static code","initialization":"// runs once","setup":"// runs before each test","tests":[{"name":"run static code","code":"function test() {}\n(async () => test())() ","results":{"aborted":false,"count":6241345,"cycles":8,"hz":62890023.34591573,"stats":{"moe":3.6521637226948097e-10,"rme":2.2968466178338307,"sem":1.8633488381095968e-10,"deviation":1.3944025888498827e-9,"mean":1.590077323552056e-8,"variance":1.944358579791255e-18,"numSamples":56},"times":{"cycle":0.09924221152965007,"elapsed":6.205,"period":1.590077323552056e-8,"timeStamp":1632921699005}},"platforms":{"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Safari/537.36":{"aborted":false,"count":6241345,"cycles":8,"hz":62890023.34591573,"stats":{"moe":3.6521637226948097e-10,"rme":2.2968466178338307,"sem":1.8633488381095968e-10,"deviation":1.3944025888498827e-9,"mean":1.590077323552056e-8,"variance":1.944358579791255e-18,"numSamples":56},"times":{"cycle":0.09924221152965007,"elapsed":6.205,"period":1.590077323552056e-8,"timeStamp":1632921699005}}}},{"name":"await non-async code","code":"function test() {}\n(async () => await test())() ","results":{"aborted":false,"count":246433,"cycles":4,"hz":2276202.569133801,"stats":{"moe":3.694988309646735e-8,"rme":8.410541883337258,"sem":1.8851981171667016e-8,"deviation":1.3330363725286863e-7,"mean":4.393282098704184e-7,"variance":1.7769859704844382e-14,"numSamples":50},"times":{"cycle":0.1082649687429968,"elapsed":6.412,"period":4.393282098704184e-7,"timeStamp":1632921705216}},"platforms":{"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Safari/537.36":{"aborted":false,"count":246433,"cycles":4,"hz":2276202.569133801,"stats":{"moe":3.694988309646735e-8,"rme":8.410541883337258,"sem":1.8851981171667016e-8,"deviation":1.3330363725286863e-7,"mean":4.393282098704184e-7,"variance":1.7769859704844382e-14,"numSamples":50},"times":{"cycle":0.1082649687429968,"elapsed":6.412,"period":4.393282098704184e-7,"timeStamp":1632921705216}}}},{"name":"await unnecessary async","code":"async function test() {}\n(async () => await test())() \n","results":{"aborted":false,"count":242687,"cycles":5,"hz":2468538.450749993,"stats":{"moe":2.7355943874348653e-8,"rme":6.752919931038838,"sem":1.3957114221606456e-8,"deviation":1.0350872937449917e-7,"mean":4.0509800432566866e-7,"variance":1.0714057056723308e-14,"numSamples":55},"times":{"cycle":0.09831201937578356,"elapsed":6.618,"period":4.0509800432566866e-7,"timeStamp":1632921711645}},"platforms":{"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Safari/537.36":{"aborted":false,"count":242687,"cycles":5,"hz":2468538.450749993,"stats":{"moe":2.7355943874348653e-8,"rme":6.752919931038838,"sem":1.3957114221606456e-8,"deviation":1.0350872937449917e-7,"mean":4.0509800432566866e-7,"variance":1.0714057056723308e-14,"numSamples":55},"times":{"cycle":0.09831201937578356,"elapsed":6.618,"period":4.0509800432566866e-7,"timeStamp":1632921711645}}}}]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment