翻篇收录说明
翻篇网页快照

Code Migration v1 Leaderboard and Methodology | Vals AI

https://www.vals.ai/benchmarks/code-migration

最近抓取:2026-12-03 12:51:31(北京时间)

最近内容变化:2026-11-30 09:32:41(北京时间)

这是最近一次有效抓取的文本快照,不含网页脚本、图片和动态交互内容。实际网页可能已更新。

访问原网页

页面简介

Compare AI agents on Code Migration: reimplementing working programs in another language. Explore success rates, evaluation costs and methodology.

正文摘录

CodingCode Migration Archived Benchmark Code Migration v1.0 has been superseded by Code Migration v1.1, which runs on the Pi agent harness with revised test suites and replaces it in the Coding sector of Vals Index v2.2. Previous results are preserved here for posterity. Code MigrationRewriting programs in new languagesCode Migration•Oct 29, 2026ACCURACYCostFrontierLog scaleShowing latest, top & frontier models (25)Lab:AnthropicDeepSeekFireworksGoogleMetaMistralOpenAISpaceXAIStepFunTencentXiaomiPinch or Ctrl/Cmd + scroll to zoom. Once zoomed, scroll or swipe with two fingers to pan, or drag to pan. Shift + drag draws a box to zoom into; turn on box zoom to draw one without Shift. Plus and minus keys zoom, arrow keys pan, 0 resets. Code Migration leaderboard Rank Model Accuracy Cost / Test Tokens / Test Duration / Test 1 Claude Sonnet 5.5 69.83% $46.40 351.92m 3h20m 2 Gemini 4 Argon 68.17% $57.82 154.36m 2h12m 3 GPT-6 Astra 67.74% $44.36 19.23m 58m30s 4 Claude Opus 5.5 66.65% $69.48 263.80m 3h19m 5 GPT-6.1 Sol 65.12% $6.51 19.43m 1h36m 6 Wonder 62.55% $69.54 209.31m 2h51m 7 Wonder Full 61.03% $38.41 175.58m 3h53m 8 Claude Opus 5 57.47% $60.51 107.67m 2h51m 9 GPT-6 Sol 57.20% $15.68 45.67m 1h26m 10 Claude Fable 5 55.06% $112.10 104.61m 1h49m 11 Claude Fable 5.1 54.61% $70.97 179.67m 4h20m 12 GPT-5.6 Sol 52.92% $24.54 35.28m 59m12s 13 GPT-5.6 Terra 47.80% $8.13 29.05m 48m34s 14 Hy4 Preview 47.43% $3.41 65.75m 2h13m 15 Muse Spark 1.3 Max 47.41% $14.21 96.41m 1h24m 16 Claude Opus 4.8 47.25% $30.51 47.22m 1h15m 17 DeepSeek V4.1 Flash 45.62% $0.94 75.85m 1h45m 18 GPT 5.5 45.16% $6.44 8.11m 31m35s 19 Grok 4.7 44.82% $36.55 40.75m 1h09m 20 Grok 4.6 44.57% $14.58 29.54m 1h30m 21 Claude Haiku 5.5 44.57% $6.23 102.33m 1h23m 22 GPT-5.6 Luna 44.55% $1.88 71.35m 58m35s 23 Claude Sonnet 5 44.39% $35.31 169.64m 1h57m 24 GLM 5.3 44.22% $24.91 93.79m 3h47m 25 DeepSeek V4.1 Flash 1017 44.21% $1.86 245.85m 2h11m 26 Claude Opus 4.7 43.88% $36.39 63.64m 1h12m 27 MiMo V2.6 Pro 43.01% $0.69 61.67m 2h49m 28 GPT-6 Luna 42.55% $0.60 34.65m 50m23s 29 DeepSeek V4 Pro 0813 41.54% $18.58 177.45m 3h32m 30 MiMo V2.6 Flash 40.93% $0.49 112.54m 3h12m 31 Claude Sonnet 4.6 39.89% $38.51 129.44m 1h40m 32 Step 5 Preview 38.98% $7.61 139.25m 3h34m 33 DeepSeek V4 Flash 0731 38.63% $3.61 142.34m 2h08m 34 GLM 5.2 37.87% $12.64 46.21m 1h54m 35 Grok 4.5 36.60% $3.37 7.79m 23m29s 36 Gemini 3.8 Flash 36.55% $18.49 95.73m 2h37m 37 GPT 5.4 (xhigh) 34.98% $7.76 17.94m 35m46s 38 Gemini 3.7 Flash 34.80% $21.46 92.69m 2h39m 39 Ember-1 32.51% $51.11 150.87m 4h09m 40 Muse Spark 1.1 31.11% $4.56 29.70m 39m11s 41 Gemini 3.6 Flash 30.93% $8.93 42.72m 1h30m 42 Mistral Large 4 Preview 30.56% $24.52 93.31m 4h51m 43 Muse Spark 1.2 29.95% $3.78 20.13m 31m07s 44 Kimi K2.6 27.77% $5.11 30.36m 1h30m 45 Muse Spark 1.3 27.58% $4.62 21.89m 1h08m 46 Gemini 3.5 Flash 26.75% $5.73 21.14m 19m28s 47 DeepSeek V4 26.20% $1.07 13.76m 28m58s 48 GLM 5.1 25.77% $5.70 24.46m 58m22s 49 Kimi K2.7 Code 25.39% $5.04 26.60m 1h39m 50 Qwen 3.8 Max 23.96% $10.54 38.10m 4h28m 51 MiMo V2.5 Pro 21.56% $0.24 19.60m 48m53s 52 Muse Spark Open 21.17% $9.04 20.48m 1h53m 53 GLM 5.3 Flash 20.52% $6.26 214.21m 3h26m 54 MiniMax-M3 19.93% $7.07 59.92m 1h14m 55 Gemini 3.1 Pro Preview (02/26) 17.31% $1.61 3.17m 12m01s 56 Kimi K3 16.10% $13.87 34.75m 4h18m 57 GPT 5.4 Nano 14.47% $0.42 10.04m 26m34s 58 MiMo V2.5 14.23% $0.10 17.86m 37m55s 59 Qwen 3.8 27B 14.16% $21.68 44.88m 4h46m 60 Inkling Small 13.68% $0.60 8.14m 20m33s 61 Qwen 3.7 Max 13.07% $1.93 3.77m 25m32s 62 GPT 5.4 Mini 12.94% $1.95 14.54m 28m53s 63 Qwen 3.7 Plus 12.86% $0.42 4.65m 35m47s 64 Inkling 11.79% $3.01 13.44m 29m34s 65 Qwen 3.6 Plus 11.10% $4.78 9.81m 29m50s 66 MiniMax-M2.7 8.69% $0.59 11.34m 20m59s 67 Claude Haiku 4.5 (Thinking) 7.55% $0.98 5.40m 9m54s 68 Kimi K2.5 6.96% $0.93 7.00m 1h04m 69 Grok 4.3 6.79% $0.42 968.09k 3m00s 70 Gemini 3 Flash (12/25) 6.39% $0.34 2.15m 4m44s 71 Gemini 3.5 Flash Lite 6.15% $0.53 3.29m 22m02s 72 Mistral Medium 3.5 5.13% $18.62 11.64m 3h38m 73 Nemotron 3 Ultra 4.91% - 17.78m 1h31m 74 Gemini 3.1 Flash Lite Preview 4.61% $0.05 579.96k 92.63s 75 Mercury 2.5 4.52% $0.63 7.43m 16m14s 76 Nemotron 3.5 Lightning 2.95% $0.27 24.05m 43m25s 77 Ling 3.0 Flash Fin 1.82% $0.10 4.98m 29m30s 78 Grok 4.20 (Reasoning) 0.31% $0.29 568.20k 6m14s 79 Ling 3.0 Flash 0.00% $0.06 1.72m 4h59m Background Translating a working program from one language to another is a costly, high-stakes engineering task, whether porting a tool to a new ecosystem or modernizing legacy systems written in languages that are increasingly hard to staff. COBOL-to-Java migration carries real economic weight: decades-old COBOL still runs core transaction systems at many of the world’s largest banks, insurers, and government agencies. These institutions are spending heavily on multi-year programs to modernize that code onto maintainable languages like Java. The work is slow, risky, and exactly the kind of task reliable automation could transform. Migration between modern languages matters too, driven by the pursuit of better runtime performance, richer tooling and ecosystems, or the memory-safety guarantees of a language like Rust. Code Migration measures how well today’s frontier models can automate both kinds of work (modernizing legacy COBOL to Java, and translating between modern languages) by taking an existing program and faithfully reproducing its behavior in the target language. Results Accuracy vs. Cost Code MigrationOverallCost / TestAccuracyAlibabaAnt GroupAnthropicDeepSeekFireworksGoogleInceptionMetaMiniMaxMistralMoonshot AINVIDIAOpenAISpaceXAIStepFunTencentThinking MachinesXiaomizAI Cost and accuracy trade off sharply across the leaderboard. GPT-6 Astra leads at 67.7% for about $44 per test; Claude Opus 5 follows at 57.5% for about $61 per test, while Claude Fable 5 reaches 55.1% at about $112 per test. DeepSeek V4.1 Flash has the best accuracy per dollar of any model above 30%: 45.6% for under $1 per test, ahead of Claude Sonnet 4.6 (39.9%) at roughly a fortieth of its cost. GPT 5.5 reaches 45% at about $6 per test, nearly matching Claude Opus 4.8 (47%) for roughly a fifth of the cost, and ahead of the pricier Claude Opus 4.7. Further down, DeepSeek V4 reaches about 26% for about $1 per test, and MiMo V2.5 Pro about 22% for under $0.25. Correctness vs. Code Quality Code Quality vs AccuracyCode qualityAccuracyAnthropicGoogleOpenAIMetaTencentDeepSeekSpaceXAIzAIXiaomiStepFunFireworksMistralMoonshot AIAlibabaMiniMaxThinking MachinesNVIDIAInceptionAnt GroupCode quality is the mean of four reviewer dimensions (readability, documentation, file structure, language idioms) over CLI tasks, scored independently of hidden-test pass rateHover a point for the model Passing hidden tests and writing clean code are related but distinct: the strongest test-passers are not always the highest-rated implementations. Difficulty by Target Language CLI Accuracy by Target LanguageBest target per model in darker greenAll 79 modelsModelPythonJavaKotlinRustC++CLI avg1Claude Sonnet 5.570.671.567.770.768.269.82Gemini 4 Argon68.576.668.155.668.567.63GPT-6 Astra65.368.766.968.867.967.54Claude Opus 5.567.965.668.859.564.665.55GPT-6.1 Sol55.469.867.060.763.663.56Claude Fable 564.555.762.656.860.860.17Wonder58.863.157.761.259.860.18Wonder Full63.561.057.050.358.458.09Claude Opus 553.255.651.553.752.453.310GPT-6 Sol52.254.251.253.454.652.911Claude Fable 5.154.553.351.857.843.252.812GPT-5.6 Sol47.949.848.440.749.747.213GPT-5.6 Terra38.242.842.041.135.740.414Muse Spark 1.3 Max42.940.639.840.736.440.415Claude Opus 4.843.837.440.636.643.640.116Hy4 Preview41.237.941.639.438.739.917Grok 4.641.139.839.139.237.239.418DeepSeek V4.1 Flash35.138.242.435.134.437.519GPT-6 Luna36.639.237.637.633.537.220GPT 5.538.133.837.937.637.036.921Grok 4.737.038.832.439.235.136.422Claude Sonnet 535.640.237.235.530.436.323Claude Haiku 5.536.135.436.438.333.136.124GPT-5.6 Luna33.338.136.336.935.536.125GLM 5.339.832.441.034.226.035.626DeepSeek V4.1 Flash 101745.739.938.726.619.635.627Claude Opus 4.737.534.833.935.234.535.228MiMo V2.6 Pro35.039.527.136.033.434.029DeepSeek V4 Pro 081337.230.532.230.728.032.130DeepSeek V4 Flash 073133.635.429.430.430.932.031Step 5 Preview34.132.833.136.717.232.032MiMo V2.6 Flash28.437.329.034.225.531.233Claude Sonnet 4.633.229.628.429.432.130.334GLM 5.223.226.729.727.229.627.235Gemini 3.8 Flash23.022.028.733.419.625.936Grok 4.525.225.824.324.928.525.537GPT 5.4 (xhigh)22.126.222.925.721.323.838Gemini 3.7 Flash21.623.320.830.321.823.539Ember-133.819.523.921.814.023.340Gemini 3.6 Flash16.121.819.920.117.919.341GLM 5.117.717.120.216.325.018.842Muse Spark 1.115.020.621.322.49.918.643Kimi K2.619.520.015.914.721.418.044Mistral Large 4 Preview23.417.014.118.413.317.445Gemini 3.5 Flash20.611.318.516.320.217.246Muse Spark 1.216.920.216.520.77.317.147DeepSeek V420.217.113.313.712.015.548Qwen 3.6 Plus15.614.715.111.315.314.449MiMo V2.5 Pro11.116.910.816.116.714.050Muse Spark 1.314.016.316.810.49.413.951Kimi K2.7 Code12.613.714.314.810.613.452Qwen 3.8 Max14.111.710.413.59.411.953MiniMax-M313.311.913.710.97.711.954Qwen 3.7 Plus9.112.913.111.412.911.955Qwen 3.7 Max11.311.712.910.111.811.656Gemini 3.1 Pro Preview (02/26)12.610.110.211.39.610.857Muse Spark Open12.511.413.57.43.410.458MiniMax-M2.711.113.97.29.39.310.259Claude Haiku 4.5 (Thinking)7.412.610.511.37.410.160MiMo V2.511.213.810.55.07.39.961Grok 4.310.97.210.09.07.49.162Gemini 3 Flash (12/25)7.27.59.05.616.38.563GPT 5.4 Mini11.57.58.17.16.08.264Kimi K2.56.59.97.66.410.88.065GLM 5.3 Flash8.95.17.111.03.47.466Inkling7.49.16.79.10.37.067Mercury 2.54.78.97.25.51.66.068Inkling Small7.47.04.56.73.25.969Gemini 3.5 Flash Lite5.34.56.39.72.45.970Gemini 3.1 Flash Lite Preview3.28.45.84.27.65.771Mistral Medium 3.53.46.55.75.82.15.072Nemotron 3 Ultra6.05.15.82.03.44.673Nemotron 3.5 Lightning4.14.43.61.47.73.974GPT 5.4 Nano5.33.32.53.52.03.475Qwen 3.8 27B2.62.40.83.91.52.276Kimi K30.50.72.31.33.01.577Ling 3.0 Flash Fin0.43.30.50.70.01.178Grok 4.20 (Reasoni