Primeiro commit do projeto Angular

This commit is contained in:
2026-03-14 20:41:55 +00:00
parent 9bebe1de72
commit 94f4f46395
22413 changed files with 3221690 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
'use strict'
const { resolve } = require('node:path')
const { Piscina } = require('../../dist')
const { tasksPerWorker, minThreads } = require('./utils')
module.exports = suite => {
const pool = new Piscina({
filename: resolve(__dirname, '..', 'fixtures/add.js'),
atomics: 'async'
})
const pool2 = new Piscina({
minThreads,
filename: resolve(__dirname, '..', 'fixtures/add.js'),
concurrentTasksPerWorker: tasksPerWorker,
atomics: 'async'
})
suite.add('simple/async/default', { maxTime: 1 }, async () => {
await pool.run({ a: 1, b: 2 })
})
suite.add(`simple/async/customized`, { maxTime: 1 }, async () => {
await pool2.run({ a: 1, b: 2 })
})
return suite
}