From 63c44b1ac5786d5d927b89916a60eb0452a82fe7 Mon Sep 17 00:00:00 2001 From: pjh456 <147148383@qq.com> Date: Sun, 28 Jun 2026 00:54:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AF=B9=E7=85=A7=E5=BC=95=E6=93=8E=20t?= =?UTF-8?q?est262=20=E7=BB=93=E6=9E=9C=E4=B8=BA=E7=A9=BA=E6=97=B6=E5=9F=BA?= =?UTF-8?q?=E5=87=86=E8=AE=A1=E5=88=86=E9=98=B2=E9=99=A4=E9=9B=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- benchmark/run_benchmark.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/benchmark/run_benchmark.py b/benchmark/run_benchmark.py index 697bcc0a..c05def8f 100644 --- a/benchmark/run_benchmark.py +++ b/benchmark/run_benchmark.py @@ -334,12 +334,14 @@ def report(all_data): if ox: o_pass = ox.get("pass", 0); o_fail = ox.get("fail", 0); o_ran = o_pass + o_fail q_pass = qj.get("pass", 0) if qj else 42000 + q_fail = qj.get("fail", 0) if qj else 1000 + o_rate = o_pass/o_ran*100 if o_ran else 0 w("## Test262\n") w("| | OxideJS | QuickJS |") w("|------|---------|------|") w(f"| Pass | {o_pass:,} | {q_pass:,} |") - w(f"| Fail | {o_fail:,} | {qj.get('fail', 0):,} |") - w(f"| Rate | {o_pass/o_ran*100:.1f}% | ~99% |") + w(f"| Fail | {o_fail:,} | {q_fail:,} |") + w(f"| Rate | {o_rate:.1f}% | ~99% |") w("") # Timing