Code review is a critical practice in modern software engineering, helping developers detect defects early, improve code quality, and facilitate knowledge sharing. With the rapid advancement of large language models (LLMs), a growing body of work has explored automated support for code review. However, progress in this area is hindered by the lack of a systematic understanding of existing benchmarks and evaluation practices. Current code review datasets are scattered, vary widely in design, and provide limited insight into what review capabilities are actually being assessed. In this paper, we present a comprehensive survey of code review benchmarks spanning both the Pre-LLM and LLM eras (2015--2025). We analyze 104 research papers (60 Pre-LLM era and 44 LLM era) and extract key metadata, including datasets, evaluation metrics, data sources, and target tasks. Based on this analysis, we propose a multi-level taxonomy that organizes code review research into five domains and 18 fine-grained tasks. Our study reveals an increased emphasis on generative peer-review results, increased multilingual coverage, and a decline in standalone change-understanding tasks. We further identify critical gaps in current benchmarks, such as missing macro-level and structural review tasks, reliance on misaligned or uncalibrated evaluation metrics, and the limited use of execution-grounded assessment. We derive four taxonomy-driven design principles to address them: broader task coverage, execution-grounded evaluation, calibrated multi-reference assessment, and cross-language generalization testing. This survey provides a structured foundation for developing more realistic and comprehensive benchmarks for LLM-based code review.
翻译:暂无翻译