repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'feature/task-functions' of github.com:poolifier/poolifier into feature...
[poolifier.git]
/
benchmarks
/
versus-external-pools
/
fixed-nanothreads.mjs
diff --git
a/benchmarks/versus-external-pools/fixed-nanothreads.mjs
b/benchmarks/versus-external-pools/fixed-nanothreads.mjs
index 4f589e2c9c184e920e03b7061b388c5640439304..d5572059d6dff3ec23ad3394df3691c48707c723 100644
(file)
--- a/
benchmarks/versus-external-pools/fixed-nanothreads.mjs
+++ b/
benchmarks/versus-external-pools/fixed-nanothreads.mjs
@@
-1,9
+1,7
@@
-// IMPORT LIBRARIES
import { ThreadPool } from 'nanothreads'
import { ThreadPool } from 'nanothreads'
-// FINISH IMPORT LIBRARIES
-// IMPORT FUNCTION TO BENCH
+import { executeAsyncFn } from '../benchmarks-utils.mjs'
import functionToBench from './functions/function-to-bench.js'
import functionToBench from './functions/function-to-bench.js'
-// FINISH IMPORT FUNCTION TO BENCH
+
const size = parseInt(process.env.POOL_SIZE)
const iterations = parseInt(process.env.NUM_ITERATIONS)
const data = {
const size = parseInt(process.env.POOL_SIZE)
const iterations = parseInt(process.env.NUM_ITERATIONS)
const data = {
@@
-27,4
+25,4
@@
async function run () {
process.exit()
}
process.exit()
}
-await
run(
)
+await
executeAsyncFn(run
)