-
Notifications
You must be signed in to change notification settings - Fork 162
/
Makefile
38 lines (30 loc) · 974 Bytes
/
Makefile
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
34
35
36
37
38
test:
npm run test
test-all:
npm ci
npm publish --dry-run
publish: validate-git-status
npm publish
git push origin main
git push origin --tags
validate-git-status:
@ if [ "`git symbolic-ref --short HEAD`" != "main" ] ; \
then echo "Not on the main branch!\n" ; exit 1 ; \
fi
@ if ! git diff --exit-code --quiet ; \
then echo "Local differences!\n" ; git status ; exit 1 ; \
fi
git pull
profile-encode:
npx rimraf isolate-*.log
node --prof --require ts-node/register -e 'require("./benchmark/profile-encode")'
node --prof-process --preprocess -j isolate-*.log | npx flamebearer
profile-decode:
npx rimraf isolate-*.log
node --prof --require ts-node/register -e 'require("./benchmark/profile-decode")'
node --prof-process --preprocess -j isolate-*.log | npx flamebearer
benchmark:
npx node -r ts-node/register benchmark/benchmark-from-msgpack-lite.ts
@echo
node benchmark/msgpack-benchmark.js
.PHONY: test dist validate-branch benchmark