X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=benchmarks%2FyourWorker.js;h=ac3959d121f1fcfa123f1118374a1c4b3d2bcf4f;hb=1f9a5a440caea7dc60a664d413304250969bb4d8;hp=701aa8cf4d59cf15cd7623b0b09f8cbb0cef8928;hpb=a3c8691eb5bd772a43746fd5860d54a786463039;p=poolifier.git diff --git a/benchmarks/yourWorker.js b/benchmarks/yourWorker.js index 701aa8cf..ac3959d1 100644 --- a/benchmarks/yourWorker.js +++ b/benchmarks/yourWorker.js @@ -12,9 +12,4 @@ function yourFunction (data) { return { ok: 1 } } -class MyWorker extends ThreadWorker { - constructor () { - super(yourFunction) - } -} -module.exports = new MyWorker() +module.exports = new ThreadWorker(yourFunction)