-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
33 lines (33 loc) · 1.36 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
"name": "threading-benchmarks",
"version": "0.0.1",
"description": "Threading benchmarks for WebAssembly",
"private": true,
"main": "index.js",
"scripts": {
"clean:js": "rm -rf dist/js && mkdir dist/js && mkdir dist/js/algorithms",
"clean:wc": "rm -rf dist/wasm-c && mkdir dist/wasm-c",
"clean:nc": "rm -rf dist/native-c && mkdir dist/native-c",
"build:js": "yarn run clean:js && cp src/js/* dist/js/ && cp src/algorithms/*.js dist/js/algorithms/ && yarn run rollup:worker",
"rollup:worker": "rollup src/js/worker.js --file dist/js/worker.js --format iife --no-treeshake",
"build:nc": "yarn run clean:nc && gcc src/native-c/threads.c src/algorithms/*.c -O2 -o ./dist/native-c/threads",
"build:wc": "yarn run clean:wc && emcc src/wasm-c/threads.c src/algorithms/*.c -s USE_PTHREADS=1 -s PTHREAD_POOL_SIZE=4 -o ./dist/wasm-c/threads.js",
"build": "yarn run build:js && yarn run build:wc",
"serve": "http-server -c-1 ./dist/",
"exec:nc": "./dist/native-c/threads"
},
"repository": {
"type": "git",
"url": "git+https://github.com/lumen/threading-benchmarks.git"
},
"author": "",
"license": "MIT",
"bugs": {
"url": "https://github.com/lumen/threading-benchmarks/issues"
},
"homepage": "https://github.com/lumen/threading-benchmarks#readme",
"dependencies": {
"http-server": "0.11.1",
"rollup": "^1.16.2"
}
}