While Large Language Models (LLMs) have substantially improved the functional correctness of code translation, the critical dimension of remains overlooked. We present , the first benchmark to explicitly assess efficiency in LLM-translated code. includes 1,000 efficiency-critical tasks across C++, Java, and Python, each augmented with stress tests that reveal efficiency degradations often overlooked by small-scale tests. Using , we conduct an extensive evaluation of 28 representative LLMs and highlight several key insights: 1) Correctness is not a reliable proxy for efficiency: the correctness leader achieves only mid-level time efficiency, outperformed by smaller open-source LLMs such as . 2) Inefficiency is both prevalent and patterned: 23.5% of correct translations exhibit pronounced inefficiency, distributed across algorithmic faults (11.9%), language construct mismatches (66.4%), and resource mismanagement (21.7%). 3) Inference-time prompt strategies bring only modest improvements, suggesting that current LLMs lack intrinsic efficiency awareness. Together, our results establish efficiency as an essential dimension of code translation and position as a principled foundation for efficiency-oriented evaluation.

生成讲解博客的中文版本

生成AI智能校验的中文版本