X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=promise-handling.js;h=bed3ac4f64a8de4a8042d7dd54c7e4d92fd3acef;hb=31688ebd341c01ea9029dcf57f4c77fe92aa455c;hp=182ba772bef44b6c60ced6f74e6e1d79a15920ec;hpb=ed2968f2ee816cb47841f537bcbfb8590aa7bbb9;p=benchmarks-js.git diff --git a/promise-handling.js b/promise-handling.js index 182ba77..bed3ac4 100644 --- a/promise-handling.js +++ b/promise-handling.js @@ -3,10 +3,16 @@ const { LIST_FORMATTER } = require('./benchmark-utils') const suite = new Benchmark.Suite() +/** + * + */ function promise () { return new Promise() } +/** + * + */ async function asyncFunction () { await promise() } @@ -25,7 +31,7 @@ suite console.log( 'Fastest is ' + LIST_FORMATTER.format(this.filter('fastest').map('name')) ) - // eslint-disable-next-line no-process-exit + // eslint-disable-next-line n/no-process-exit process.exit() }) .run()