• bitcoinBitcoin(BTC)$81,476.000.77%
  • ethereumEthereum(ETH)$2,637.322.26%
  • tetherTether(USDT)$1.000.02%
  • binancecoinBNB(BNB)$770.371.32%
  • rippleXRP(XRP)$1.442.88%
  • usd-coinUSDC(USDC)$1.000.01%
  • solanaSolana(SOL)$111.730.98%
  • tronTRON(TRX)$0.337861-0.36%
  • zcashZcash(ZEC)$1,526.412.77%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.030.22%
  • HyperliquidHyperliquid(HYPE)$92.870.80%
  • dogecoinDogecoin(DOGE)$0.0889311.18%
  • moneroMonero(XMR)$572.586.18%
  • whitebitWhiteBIT Coin(WBT)$83.230.34%
  • RainRain(RAIN)$0.0139358.33%
  • USDSUSDS(USDS)$1.00-0.02%
  • chainlinkChainlink(LINK)$12.543.21%
  • cardanoCardano(ADA)$0.2277243.38%
  • leo-tokenLEO Token(LEO)$8.930.58%
  • stellarStellar(XLM)$0.2004653.52%
  • uniswapUniswap(UNI)$8.952.62%
  • bitcoin-cashBitcoin Cash(BCH)$253.44-0.22%
  • Ethena USDeEthena USDe(USDE)$1.000.01%
  • nearNEAR Protocol(NEAR)$3.58-3.02%
  • daiDai(DAI)$1.00-0.01%
  • litecoinLitecoin(LTC)$57.773.44%
  • CantonCanton(CC)$0.1114832.53%
  • USD1USD1(USD1)$1.000.02%
  • avalanche-2Avalanche(AVAX)$9.3515.10%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.390.98%
  • hedera-hashgraphHedera(HBAR)$0.0809573.10%
  • suiSui(SUI)$0.845.04%
  • Global DollarGlobal Dollar(USDG)$1.00-0.01%
  • shiba-inuShiba Inu(SHIB)$0.0000060.38%
  • BittensorBittensor(TAO)$270.677.33%
  • crypto-com-chainCronos(CRO)$0.059845-0.16%
  • MemeCoreMemeCore(M)$1.29-3.31%
  • paypal-usdPayPal USD(PYUSD)$1.00-0.01%
  • tether-goldTether Gold(XAUT)$4,373.520.35%
  • okbOKB(OKB)$120.363.04%
  • Circle USYCCircle USYC(USYC)$1.140.00%
  • Ripple USDRipple USD(RLUSD)$1.00-0.02%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.150.05%
  • aaveAave(AAVE)$142.893.71%
  • OndoOndo(ONDO)$0.4381319.73%
  • mantleMantle(MNT)$0.647.04%
  • AsterAster(ASTER)$0.771.73%
  • EthenaEthena(ENA)$0.19983721.18%
  • Pump.funPump.fun(PUMP)$0.004131-4.59%
TradePoint.io
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop
No Result
View All Result
TradePoint.io
No Result
View All Result

TikTok Researchers Introduce SWE-Perf: The First Benchmark for Repository-Level Code Performance Optimization

July 21, 2025
in AI & Technology
Reading Time: 7 mins read
A A
TikTok Researchers Introduce SWE-Perf: The First Benchmark for Repository-Level Code Performance Optimization
ShareShareShareShareShare

Introduction

As large language models (LLMs) advance in software engineering tasks—ranging from code generation to bug fixing—performance optimization remains an elusive frontier, especially at the repository level. To bridge this gap, researchers from TikTok and collaborating institutions have introduced SWE-Perf—the first benchmark specifically designed to evaluate the ability of LLMs to optimize code performance in real-world repositories.

Unlike prior benchmarks focused on correctness or function-level efficiency (e.g., SWE-Bench, Mercury, EFFIBench), SWE-Perf captures the complexity and contextual depth of repository-scale performance tuning. It provides a reproducible, quantitative foundation to study and improve the performance optimization capabilities of modern LLMs.

YOU MAY ALSO LIKE

Google Gemini Also Escaped Its Testing Environment And Hacked Three Companies

What Is AI Agent Memory? Short-Term, Long-Term, Episodic, and Semantic Memory Explained – Unite.AI

Image source: https://arxiv.org/abs/2507.12415

Why SWE-Perf Is Needed

Real-world codebases are often large, modular, and intricately interdependent. Optimizing them for performance requires understanding of cross-file interactions, execution paths, and computational bottlenecks—challenges beyond the scope of isolated function-level datasets.

LLMs today are largely evaluated on tasks like syntax correction or small function transformations. But in production environments, performance tuning across repositories can yield more substantial system-wide benefits. SWE-Perf is explicitly built to measure LLM capabilities in such settings.

Image source: https://arxiv.org/abs/2507.12415

Dataset Construction

SWE-Perf is constructed from over 100,000 pull requests across high-profile GitHub repositories. The final dataset covered 9 repositories including:

  • 140 curated instances demonstrating measurable and stable performance improvements.
  • Complete codebases pre- and post-optimization.
  • Target functions categorized as oracle (file-level) or realistic (repo-level).
  • Unit tests and Docker environments for reproducible execution and performance measurement.
  • Expert-authored patches used as gold standards.

To ensure validity, each unit test must:

  1. Pass before and after the patch.
  2. Show statistically significant runtime gains over 20 repetitions (Mann-Whitney U test, p < 0.1).

Performance is measured using minimum performance gain (δ), isolating statistical improvements attributable to the patch while filtering noise.

Benchmark Settings: Oracle vs. Realistic

  • Oracle Setting: The model receives only the target functions and corresponding files. This setting tests localized optimization skills.
  • Realistic Setting: The model is given an entire repository and must identify and optimize performance-critical paths autonomously. This is a closer analog to how human engineers work.

Evaluation Metrics

SWE-Perf defines a three-tier evaluation framework, reporting each metric independently:

  1. Apply: Can the model-generated patch be applied cleanly?
  2. Correctness: Does the patch preserve functional integrity (all unit tests pass)?
  3. Performance: Does the patch yield measurable runtime improvement?

The metrics are not aggregated into a single score, allowing more nuanced evaluation of tradeoffs between syntactic correctness and performance gains.

Experimental Results

The benchmark evaluates several top-tier LLMs under both oracle and realistic settings:

Model Setting Performance (%)
Claude-4-opus Oracle 1.28
GPT-4o Oracle 0.60
Gemini-2.5-Pro Oracle 1.48
Claude-3.7 (Agentless) Realistic 0.41
Claude-3.7 (OpenHands) Realistic 2.26
Expert (Human Patch) – 10.85

Notably, even the best-performing LLM configurations fall significantly short of human-level performance. The agent-based method OpenHands, built on Claude-3.7-sonnet, outperforms other configurations in the realistic setting but still lags behind expert-crafted optimizations.

Key Observations

  • Agent-based frameworks like OpenHands are better suited for complex, multi-step optimization, outperforming direct model prompts and pipeline-based approaches like Agentless.
  • Performance degrades as the number of target functions increases—LLMs struggle with broader optimization scopes.
  • LLMs exhibit limited scalability in long-runtime scenarios, where expert systems continue to show performance gains.
  • Patch analysis shows LLMs focus more on low-level code structures (e.g., imports, environment setup), while experts target high-level semantic abstractions for performance tuning.

Conclusion

SWE-Perf represents a pivotal step toward measuring and improving the performance optimization capabilities of LLMs in realistic software engineering workflows. It uncovers a significant capability gap between existing models and human experts, offering a strong foundation for future research in repository-scale performance tuning. As LLMs evolve, SWE-Perf can serve as a north star guiding them toward practical, production-ready software enhancement at scale.


Check out the Paper, GitHub Page and Project. All credit for this research goes to the researchers of this project.

Sponsorship Opportunity: Reach the most influential AI developers in US and Europe. 1M+ monthly readers, 500K+ community builders, infinite possibilities. [Explore Sponsorship]


Asif Razzaq is the CEO of Marktechpost Media Inc.. As a visionary entrepreneur and engineer, Asif is committed to harnessing the potential of Artificial Intelligence for social good. His most recent endeavor is the launch of an Artificial Intelligence Media Platform, Marktechpost, which stands out for its in-depth coverage of machine learning and deep learning news that is both technically sound and easily understandable by a wide audience. The platform boasts of over 2 million monthly views, illustrating its popularity among audiences.

Credit: Source link

ShareTweetSendSharePin

Related Posts

Google Gemini Also Escaped Its Testing Environment And Hacked Three Companies
AI & Technology

Google Gemini Also Escaped Its Testing Environment And Hacked Three Companies

September 19, 2026
What Is AI Agent Memory? Short-Term, Long-Term, Episodic, and Semantic Memory Explained – Unite.AI
AI & Technology

What Is AI Agent Memory? Short-Term, Long-Term, Episodic, and Semantic Memory Explained – Unite.AI

September 19, 2026
Linkup Research Releases SPARSEUP: A 149M-Parameter Open-Source Sparse Embedding Model
AI & Technology

Linkup Research Releases SPARSEUP: A 149M-Parameter Open-Source Sparse Embedding Model

September 19, 2026
GGUF vs GPTQ vs AWQ vs EXL2: LLM Model Formats Explained (2026)
AI & Technology

GGUF vs GPTQ vs AWQ vs EXL2: LLM Model Formats Explained (2026)

September 19, 2026
Next Post
Suze Orman says she’d never make this common retirement mistake

Suze Orman says she’d never make this common retirement mistake

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

No Result
View All Result
Thieves crawl through North Carolina restaurant

Thieves crawl through North Carolina restaurant

September 16, 2026
Raising 7 Kids On A ,000 Income

Raising 7 Kids On A $80,000 Income

September 19, 2026
NEXT plc 2027 Q2 – Results – Earnings Call Presentation (OTCMKTS:NXGPY) 2026-09-18

NEXT plc 2027 Q2 – Results – Earnings Call Presentation (OTCMKTS:NXGPY) 2026-09-18

September 18, 2026

About

Learn more

Our Services

Legal

Privacy Policy

Terms of Use

Bloggers

Learn more

Article Links

Contact

Advertise

Ask us anything

©2020- TradePoint.io - All rights reserved!

Tradepoint.io, being just a publishing and technology platform, is not a registered broker-dealer or investment adviser. So we do not provide investment advice. Rather, brokerage services are provided to clients of Tradepoint.io by independent SEC-registered broker-dealers and members of FINRA/SIPC. Every form of investing carries some risk and past performance is not a guarantee of future results. “Tradepoint.io“, “Instant Investing” and “My Trading Tools” are registered trademarks of Apperbuild, LLC.

This website is operated by Apperbuild, LLC. We have no link to any brokerage firm and we do not provide investment advice. Every information and resource we provide is solely for the education of our readers. © 2020 Apperbuild, LLC. All rights reserved.

No Result
View All Result
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop

© 2023 - TradePoint.io - All Rights Reserved!