trials 和输入数量可让二者更精确。🏆 sonnet-5 · 1 场对局中胜出 1 场 · 战绩 1–0–0 (胜–负–平) · 绝对分 5.0/5
Output A is superior because it safely handles prototype property collisions (e.g., '?toString=1') and keeps the code DRY with a decode helper.
| # | 模型 | 战绩 胜–负–平 | 绝对分 1–5 | tsc 通过 | 平均成本 | 平均延迟 | 成功率 |
|---|---|---|---|---|---|---|---|
| 1 | sonnet-5 | 1–0–0 共 1 场 · 100% | 5.0 | 100% | $0.0069 | 5.7s | 100% |
| 2 | deepseek-v4-pro | 0–1–0 共 1 场 · 0% | 5.0 | 100% | $0.0087 | 53.1s | 100% |
| 模型 | 符合规格 | 正确性 | 类型质量 | 简洁性 | 健壮性 |
|---|---|---|---|---|---|
| sonnet-5 | 50 | 100 | 50 | 100 | 100 |
| deepseek-v4-pro | 50 | 0 | 50 | 0 | 0 |
这些是单场、相对 A/B 的裁判理由(单一输入、仅取首个成功输出),不是该维度的综合质量评价;维度层只列出与总体判定不一致的项(标 ⚠,即真正的取舍点),一致的已隐藏。绝对质量请看上方「绝对分 1–5」表。
| 输入 | A | B | 维度 | 胜者 | 理由 |
|---|---|---|---|---|---|
| code-utils | sonnet-5 | deepseek-v4-pro | 总体 | sonnet-5 | Output A is superior because it safely handles prototype property collisions (e.g., '?toString=1') and keeps the code DRY with a decode helper. |
| code-utils | sonnet-5 | deepseek-v4-pro | 符合规格 ⚠ | 平局 | Both implementations meet the core requirements of parsing a query string into a dictionary of strings or string arrays. |
| code-utils | sonnet-5 | deepseek-v4-pro | 类型质量 ⚠ | 平局 | Both use appropriate TypeScript types and avoid 'any' or unsafe casts. |