-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
justfile
109 lines (91 loc) · 2.81 KB
/
justfile
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
dev: fmt clippy
/usr/bin/time -v -o target/time-test-all.txt just test-all
cat target/time-test-all.txt
clippy: fmt
cargo clippy --target x86_64-unknown-linux-gnu
cargo clippy --target armv7-unknown-linux-gnueabihf
cargo clippy --target aarch64-unknown-linux-gnu
cargo clippy --target wasm32-unknown-unknown
doc pkg="vsimd":
#!/bin/bash -e
export RUSTDOCFLAGS="--cfg docsrs"
cargo doc --no-deps --all-features
cargo doc --open -p {{pkg}}
js-bench:
#!/bin/bash -e
cd {{justfile_directory()}}
F=./scripts/base64.js
echo "running $F"
echo
echo "node" `node -v`
node ./scripts/base64.js
echo
deno -V
deno run --allow-hrtime ./scripts/base64.js
echo
echo "bun" `bun --version`
bun ./scripts/base64.js
echo
sync-version:
#!/bin/bash -ex
cd {{justfile_directory()}}
cargo set-version -p uuid-simd '0.9.0-dev'
cargo set-version -p hex-simd '0.9.0-dev'
cargo set-version -p base64-simd '0.9.0-dev'
cargo set-version -p unicode-simd '0.9.0-dev'
cargo set-version -p base32-simd '0.9.0-dev'
cargo set-version -p vsimd '0.9.0-dev'
fmt:
#!/bin/bash -ex
cd {{justfile_directory()}}
cargo fmt
# cargo sort -w > /dev/null
test crate:
#!/bin/bash -ex
cd {{justfile_directory()}}
./scripts/testgen.py --crate {{crate}} | bash -ex
x86-test crate:
#!/bin/bash -ex
cd {{justfile_directory()}}
./scripts/testgen.py --crate {{crate}} --mode x86 | bash -ex
arm-test crate:
#!/bin/bash -ex
cd {{justfile_directory()}}
./scripts/testgen.py --crate {{crate}} --mode arm | bash -ex
wasm-test crate:
#!/bin/bash -ex
cd {{justfile_directory()}}
./scripts/testgen.py --crate {{crate}} --mode wasm | bash -ex
miri-test crate:
#!/bin/bash -ex
cd {{justfile_directory()}}
cargo miri test -p {{crate}}
mips-test crate:
#!/bin/bash -ex
cd {{justfile_directory()}}
./scripts/testgen.py --crate {{crate}} --mode mips | bash -ex
test-all:
#!/bin/bash -ex
cd {{justfile_directory()}}
./scripts/testgen.py | bash -ex
cargo miri test --workspace --exclude simd-benches
dump-asm:
#!/bin/bash -ex
cd {{justfile_directory()}}
./scripts/dump-symbols.py --mode asm | bash -ex
COMMIT_HASH=`git rev-parse --short HEAD`
cd target/symbols
F=$COMMIT_HASH-asm.txt
tokei -f -s files -t assembly -c 150 > $F
tokei -f -s lines -t assembly -c 150
echo target/symbols/$F
dump-llvm-ir:
#!/bin/bash -ex
cd {{justfile_directory()}}
./scripts/dump-symbols.py --mode llvm-ir | bash -ex
COMMIT_HASH=`git rev-parse --short HEAD`
cd target/symbols
F=$COMMIT_HASH-llvm-ir.txt
tokei -f -s files -t LLVM -c 150 > $F
tokei -f -s lines -t LLVM -c 150
echo target/symbols/$F