加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
test.sh 877 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/usr/bin/env bash
set -eux
cd $(dirname $0)
# Generate new README.md and exit if it differs from the current one.
OLD_README=`mktemp`
cp README.md $OLD_README
cargo readme -r wee_alloc -t "$(pwd)/README.tpl" > README.md
diff $OLD_README README.md
cd ./wee_alloc
time cargo test
cd -
cd ./test
time cargo test --release --features "extra_assertions size_classes"
time cargo test --release --features "extra_assertions"
time cargo test --release --features "size_classes"
time cargo test --release
export WEE_ALLOC_STATIC_ARRAY_BACKEND_BYTES=$((512 * 1024 * 1024))
time cargo test --release --features "static_array_backend extra_assertions size_classes"
time cargo test --release --features "static_array_backend extra_assertions"
time cargo test --release --features "static_array_backend size_classes"
time cargo test --release --features "static_array_backend"
cd -
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化