chore(deps-dev): apply updates
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 4 Oct 2024 19:53:30 +0000 (21:53 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 4 Oct 2024 19:53:30 +0000 (21:53 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
benchmarks/benchmarks-utils.mjs
benchmarks/internal/bench.mjs
package.json
pnpm-lock.yaml

index 1b1cfde53e6aaa53ed8814794aea45dec2364e30..0743037da81d4bf8bc2385f15d67bd2ea2a59521 100644 (file)
@@ -63,6 +63,7 @@ export const runPoolifierBenchmarkTatamiNg = async (
   workerType,
   poolType,
   poolSize,
+  benchmarkReporter,
   { taskExecutions, workerData }
 ) => {
   try {
@@ -130,7 +131,7 @@ export const runPoolifierBenchmarkTatamiNg = async (
         }
       }
     }
-    const report = await run()
+    const report = await run({ reporter: benchmarkReporter })
     await pool.destroy()
     return report
   } catch (error) {
index b11eb73be878ea78305f23e394af32f186da1380..0e9a4250d8613486a6437ad61778501a5d456e09 100644 (file)
@@ -36,62 +36,58 @@ switch (
 ) {
   case 'tatami-ng':
   default:
-    benchmarkReport = bmf(
-      await runPoolifierBenchmarkTatamiNg(
-        'FixedThreadPool',
+    benchmarkReport = await runPoolifierBenchmarkTatamiNg(
+      'FixedThreadPool',
+      WorkerTypes.thread,
+      PoolTypes.fixed,
+      poolSize,
+      bmf,
+      {
+        taskExecutions,
+        workerData,
+      }
+    )
+    benchmarkReport = {
+      ...benchmarkReport,
+      ...(await runPoolifierBenchmarkTatamiNg(
+        'DynamicThreadPool',
         WorkerTypes.thread,
-        PoolTypes.fixed,
+        PoolTypes.dynamic,
         poolSize,
+        bmf,
         {
           taskExecutions,
           workerData,
         }
-      )
-    )
-    benchmarkReport = {
-      ...benchmarkReport,
-      ...bmf(
-        await runPoolifierBenchmarkTatamiNg(
-          'DynamicThreadPool',
-          WorkerTypes.thread,
-          PoolTypes.dynamic,
-          poolSize,
-          {
-            taskExecutions,
-            workerData,
-          }
-        )
-      ),
+      )),
     }
     benchmarkReport = {
       ...benchmarkReport,
-      ...bmf(
-        await runPoolifierBenchmarkTatamiNg(
-          'FixedClusterPool',
-          WorkerTypes.cluster,
-          PoolTypes.fixed,
-          poolSize,
-          {
-            taskExecutions,
-            workerData,
-          }
-        )
-      ),
+      ...(await runPoolifierBenchmarkTatamiNg(
+        'FixedClusterPool',
+        WorkerTypes.cluster,
+        PoolTypes.fixed,
+        poolSize,
+        bmf,
+        {
+          taskExecutions,
+          workerData,
+        }
+      )),
     }
     benchmarkReport = {
       ...benchmarkReport,
-      ...bmf(
-        await runPoolifierBenchmarkTatamiNg(
-          'DynamicClusterPool',
-          WorkerTypes.cluster,
-          PoolTypes.dynamic,
-          poolSize,
-          {
-            taskExecutions,
-            workerData,
-          }
-        )
-      ),
+      ...(await runPoolifierBenchmarkTatamiNg(
+        'DynamicClusterPool',
+        WorkerTypes.cluster,
+        PoolTypes.dynamic,
+        poolSize,
+        bmf,
+        {
+          taskExecutions,
+          workerData,
+        }
+      )),
     }
     // eslint-disable-next-line @typescript-eslint/no-unused-expressions
     env.CI != null &&
index 8c7c2e46ed54a2f633ce9b974322d6b9cf7db7b8..5ddb79d267e8449d75b5345d1c133d9a1b5e9e1c 100644 (file)
     "rollup-plugin-delete": "^2.1.0",
     "rollup-plugin-dts": "^6.1.1",
     "sinon": "^19.0.2",
-    "tatami-ng": "^0.7.4",
-    "typedoc": "^0.26.7",
+    "tatami-ng": "^0.8.0",
+    "typedoc": "^0.26.8",
     "typescript": "~5.6.2"
   }
 }
index e20f0a4f8765a7cf569c4aaa69af0fe239bacb6d..3d3cc16dc44e7798a0c5a24ddc2180911604cb45 100644 (file)
@@ -96,27 +96,27 @@ importers:
         specifier: ^19.0.2
         version: 19.0.2
       tatami-ng:
-        specifier: ^0.7.4
-        version: 0.7.4(typescript@5.6.2)
+        specifier: ^0.8.0
+        version: 0.8.0(typescript@5.6.2)
       typedoc:
-        specifier: ^0.26.7
-        version: 0.26.7(typescript@5.6.2)
+        specifier: ^0.26.8
+        version: 0.26.8(typescript@5.6.2)
       typescript:
         specifier: ~5.6.2
         version: 5.6.2
 
 packages:
 
-  '@babel/code-frame@7.24.7':
-    resolution: {integrity: sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==}
+  '@babel/code-frame@7.25.7':
+    resolution: {integrity: sha512-0xZJFNE5XMpENsgfHYTw8FbX4kv53mFLn2i3XPoq69LyhYSCBJtitaHx9QnsVTrsogI4Z3+HtEfZ2/GFPOtf5g==}
     engines: {node: '>=6.9.0'}
 
-  '@babel/helper-validator-identifier@7.24.7':
-    resolution: {integrity: sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==}
+  '@babel/helper-validator-identifier@7.25.7':
+    resolution: {integrity: sha512-AM6TzwYqGChO45oiuPqwL2t20/HdMC1rTPAesnBCgPCSF1x3oN9MVUwQV2iyz4xqWrctwK5RNC8LV22kaQCNYg==}
     engines: {node: '>=6.9.0'}
 
-  '@babel/highlight@7.24.7':
-    resolution: {integrity: sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==}
+  '@babel/highlight@7.25.7':
+    resolution: {integrity: sha512-iYyACpW3iW8Fw+ZybQK+drQre+ns/tKpXbNESfrhNnPLIklLbXr7MYJ6gPEd0iETGLOK+SxMjVvKb/ffmk+FEw==}
     engines: {node: '>=6.9.0'}
 
   '@bcoe/v8-coverage@0.2.3':
@@ -493,8 +493,8 @@ packages:
     resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==}
     engines: {node: '>=12.22'}
 
-  '@humanwhocodes/retry@0.3.0':
-    resolution: {integrity: sha512-d2CGZR2o7fS6sWB7DG/3a95bGKQyHMACZ5aW8qGkkqQpUoZV6C0X7Pc7l4ZNMZkfNBf4VWNe9E1jRsf0G146Ew==}
+  '@humanwhocodes/retry@0.3.1':
+    resolution: {integrity: sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==}
     engines: {node: '>=18.18'}
 
   '@isaacs/cliui@8.0.2':
@@ -1930,8 +1930,8 @@ packages:
     engines: {node: '>=18.12.0'}
     hasBin: true
 
-  listr2@8.2.4:
-    resolution: {integrity: sha512-opevsywziHd3zHCVQGAj8zu+Z3yHNkkoYhWIGnq54RrCVwLz0MozotJEDnKsIBLvkfLGN6BLOyAeRrYI0pKA4g==}
+  listr2@8.2.5:
+    resolution: {integrity: sha512-iyAZCeyD+c1gPyE9qpFu8af0Y+MRtmKOncdGoA2S5EY8iFq99dmmvkNnHiWo+pj0s7yH7l3KPIgee77tKpXPWQ==}
     engines: {node: '>=18.0.0'}
 
   locate-path@6.0.0:
@@ -2311,11 +2311,11 @@ packages:
     resolution: {integrity: sha512-fmfw4XgoDke3kdI6h4xcUz1dG8uaiv5q9gcEwLS4Pnth2kxT+GZ7YehS1JTMGBQmtV7Y4GFGbs2re2NqhdozUg==}
     engines: {node: '>= 0.4'}
 
-  regex@4.3.2:
-    resolution: {integrity: sha512-kK/AA3A9K6q2js89+VMymcboLOlF5lZRCYJv3gzszXFHBr6kO6qLGzbm+UIugBEV8SMMKCTR59txoY6ctRHYVw==}
+  regex@4.3.3:
+    resolution: {integrity: sha512-r/AadFO7owAq1QJVeZ/nq9jNS1vyZt+6t1p/E59B56Rn2GCya+gr1KSyOzNL/er+r+B7phv5jG2xU2Nz1YkmJg==}
 
-  regexp.prototype.flags@1.5.2:
-    resolution: {integrity: sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw==}
+  regexp.prototype.flags@1.5.3:
+    resolution: {integrity: sha512-vqlC04+RQoFalODCbCumG2xIOvapzVMHwsyIGM/SIE8fRhFFsXeH8/QQ+s0T0kDAhKc4k30s73/0ydkHQz6HlQ==}
     engines: {node: '>= 0.4'}
 
   repeat-string@1.6.1:
@@ -2564,8 +2564,8 @@ packages:
     resolution: {integrity: sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==}
     engines: {node: '>=6'}
 
-  tatami-ng@0.7.4:
-    resolution: {integrity: sha512-i1ZcyYi0rnHIPf8Pp45HxZBm3UQe5lzThoM4RPaG4tVnmkXCZTVovEwoRFUp7rxfZwQpOGCH+lX63cnmAw70aA==}
+  tatami-ng@0.8.0:
+    resolution: {integrity: sha512-oUxg00Jo+v3cGBAHf/do6IDR2PB5fyc4tXPL+I4+U7sZHX3+M0klSslm0z8AdBIcuT6T4+Q7pjbd10MX6G04gg==}
     hasBin: true
     peerDependencies:
       typescript: ^5.4.3
@@ -2642,8 +2642,8 @@ packages:
     resolution: {integrity: sha512-/OxDN6OtAk5KBpGb28T+HZc2M+ADtvRxXrKKbUwtsLgdoxgX13hyy7ek6bFRl5+aBs2yZzB0c4CnQfAtVypW/g==}
     engines: {node: '>= 0.4'}
 
-  typedoc@0.26.7:
-    resolution: {integrity: sha512-gUeI/Wk99vjXXMi8kanwzyhmeFEGv1LTdTQsiyIsmSYsBebvFxhbcyAx7Zjo4cMbpLGxM4Uz3jVIjksu/I2v6Q==}
+  typedoc@0.26.8:
+    resolution: {integrity: sha512-QBF0BMbnNeUc6U7pRHY7Jb8pjhmiNWZNQT8LU6uk9qP9t3goP9bJptdlNqMC0wBB2w9sQrxjZt835bpRSSq1LA==}
     engines: {node: '>= 18'}
     hasBin: true
     peerDependencies:
@@ -2810,16 +2810,16 @@ packages:
 
 snapshots:
 
-  '@babel/code-frame@7.24.7':
+  '@babel/code-frame@7.25.7':
     dependencies:
-      '@babel/highlight': 7.24.7
+      '@babel/highlight': 7.25.7
       picocolors: 1.1.0
 
-  '@babel/helper-validator-identifier@7.24.7': {}
+  '@babel/helper-validator-identifier@7.25.7': {}
 
-  '@babel/highlight@7.24.7':
+  '@babel/highlight@7.25.7':
     dependencies:
-      '@babel/helper-validator-identifier': 7.24.7
+      '@babel/helper-validator-identifier': 7.25.7
       chalk: 2.4.2
       js-tokens: 4.0.0
       picocolors: 1.1.0
@@ -3214,7 +3214,7 @@ snapshots:
 
   '@humanwhocodes/module-importer@1.0.1': {}
 
-  '@humanwhocodes/retry@0.3.0': {}
+  '@humanwhocodes/retry@0.3.1': {}
 
   '@isaacs/cliui@8.0.2':
     dependencies:
@@ -4061,7 +4061,7 @@ snapshots:
       object-inspect: 1.13.2
       object-keys: 1.1.1
       object.assign: 4.1.5
-      regexp.prototype.flags: 1.5.2
+      regexp.prototype.flags: 1.5.3
       safe-array-concat: 1.1.2
       safe-regex-test: 1.0.3
       string.prototype.trim: 1.2.9
@@ -4228,7 +4228,7 @@ snapshots:
       '@eslint/js': 9.11.1
       '@eslint/plugin-kit': 0.2.0
       '@humanwhocodes/module-importer': 1.0.1
-      '@humanwhocodes/retry': 0.3.0
+      '@humanwhocodes/retry': 0.3.1
       '@nodelib/fs.walk': 1.2.8
       '@types/estree': 1.0.6
       '@types/json-schema': 7.0.15
@@ -4736,7 +4736,7 @@ snapshots:
 
   jest-message-util@29.7.0:
     dependencies:
-      '@babel/code-frame': 7.24.7
+      '@babel/code-frame': 7.25.7
       '@jest/types': 29.6.3
       '@types/stack-utils': 2.0.3
       chalk: 4.1.2
@@ -4818,7 +4818,7 @@ snapshots:
       debug: 4.3.7(supports-color@8.1.1)
       execa: 8.0.1
       lilconfig: 3.1.2
-      listr2: 8.2.4
+      listr2: 8.2.5
       micromatch: 4.0.8
       pidtree: 0.6.0
       string-argv: 0.3.2
@@ -4826,7 +4826,7 @@ snapshots:
     transitivePeerDependencies:
       - supports-color
 
-  listr2@8.2.4:
+  listr2@8.2.5:
     dependencies:
       cli-truncate: 4.0.0
       colorette: 2.0.20
@@ -5105,7 +5105,7 @@ snapshots:
 
   oniguruma-to-js@0.4.3:
     dependencies:
-      regex: 4.3.2
+      regex: 4.3.3
 
   opener@1.5.2: {}
 
@@ -5155,7 +5155,7 @@ snapshots:
 
   parse-json@5.2.0:
     dependencies:
-      '@babel/code-frame': 7.24.7
+      '@babel/code-frame': 7.25.7
       error-ex: 1.3.2
       json-parse-even-better-errors: 2.3.1
       lines-and-columns: 1.2.4
@@ -5239,9 +5239,9 @@ snapshots:
       globalthis: 1.0.4
       which-builtin-type: 1.1.4
 
-  regex@4.3.2: {}
+  regex@4.3.3: {}
 
-  regexp.prototype.flags@1.5.2:
+  regexp.prototype.flags@1.5.3:
     dependencies:
       call-bind: 1.0.7
       define-properties: 1.2.1
@@ -5300,7 +5300,7 @@ snapshots:
       rollup: 4.24.0
       typescript: 5.6.2
     optionalDependencies:
-      '@babel/code-frame': 7.24.7
+      '@babel/code-frame': 7.25.7
 
   rollup@4.24.0:
     dependencies:
@@ -5469,7 +5469,7 @@ snapshots:
       gopd: 1.0.1
       has-symbols: 1.0.3
       internal-slot: 1.0.7
-      regexp.prototype.flags: 1.5.2
+      regexp.prototype.flags: 1.5.3
       set-function-name: 2.0.2
       side-channel: 1.0.6
 
@@ -5535,7 +5535,7 @@ snapshots:
 
   tapable@2.2.1: {}
 
-  tatami-ng@0.7.4(typescript@5.6.2):
+  tatami-ng@0.8.0(typescript@5.6.2):
     dependencies:
       peowly: 1.3.2
       typescript: 5.6.2
@@ -5619,7 +5619,7 @@ snapshots:
       is-typed-array: 1.1.13
       possible-typed-array-names: 1.0.0
 
-  typedoc@0.26.7(typescript@5.6.2):
+  typedoc@0.26.8(typescript@5.6.2):
     dependencies:
       lunr: 2.3.9
       markdown-it: 14.1.0