mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-25 11:11:11 +08:00
test: 新增 benchmark 套件(test262 全量 + stress + 计时)
- build.sh:自动识别包管理器、装依赖、构建引擎与对照引擎 - run_benchmark.py:test262 全量 --no-skip、stress 基准、计时 - fetch_test262.sh:下载 test262 测试集 - README.md:用法说明
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
# 下载 test262 测试套件到仓库 tests/ 目录
|
||||
set -e
|
||||
REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
cd "$REPO_ROOT/tests"
|
||||
if [ -d test262/test ]; then
|
||||
echo "test262 已存在: $(find test262/test -name '*.js' | wc -l) 测试"
|
||||
exit 0
|
||||
fi
|
||||
echo "下载 test262 (约 500MB)..."
|
||||
git clone --depth 1 https://github.com/tc39/test262.git test262
|
||||
echo "完成"
|
||||
Reference in New Issue
Block a user