最新资讯
dev.to 为 CI/CD 构建 AI 质量门禁 dev.to Kakao 发布面向 AI Agent 的决策模型 Kanana-2-v-decide computerworld.com Microsoft 对 Copilot Chat 企业用户扩大未公开的使用限制 pub.towardsai.net Google 发布 Gemini 4 Carbon:主打网络安全能力的前沿模型 gradientflow.com METR 研究:AI 正在加速构建 AI 的团队本身 www.infoq.com GitLab 19.5 将 Agentic 开发纳入 DevOps 平台的治理体系 aiacceleratorinstitute.com 研究:AI Agent 的复杂流程编排可能反而是问题所在 pub.towardsai.net MongoDB 推出 Vercel AI SDK 集成:为 AI 应用提供持久记忆 thenewstack.io Google 捐出被 Anthropic 和 OpenAI 使用的代码沙箱 gVisor,押注 AI Agent 基础设施开源 dev.to 在信任 AI 生成的测试用例前,如何逐条复核 unite.ai Franklin Templeton 构建 AI 研究工作流以揭示风险 techxplore.com AI 助力寻找更优的钛合金 3D 打印工艺参数
多元动态
登录 注册
AI编码 pub.towardsai.net · @life_considered

你以为 AI 让你写代码更快?一项新研究说并非如此

原文 我的收藏

文章转述 METR 在 2025 年开展的一项实验:16 名熟悉超过百万行代码库、GitHub 星标逾 2.2 万的资深开发者完成 246 个真实任务,任务随机分配是否允许使用 AI 工具。开发者事前预测 AI 可提速 24%,完成后自感提速 20%,但屏幕录制和时间戳显示实际速度慢 19%,主观感受与实测相差 39 个百分点。该结果对 AI 编程助手提升效率的普遍预期提出质疑,但本文为二手转述,未提供论文链接与统计细节。

AI推荐理由 文章转述 METR 2025 年的一项实验:16 名熟悉百万行级代码库的资深开发者完成 246 个真实任务,随机分配是否使用 AI 工具。开发者事前预测提速 24%、事后感觉提速 20%,而屏幕录制与时间戳显示实际慢 19%,主观感受与客观测量相差 39 个百分点。该结果对 AI 编程工具的生产力叙事构成直接反证,对开发者、团队采购和工具评估有较高参考价值。局限在于本文为二手转述,未给出论文链接、任务类型分布和统计显著性等细节,需回到原始研究核实。

78

正文

Artificial Intelligence Software Development Coding Productivity You Think AI Made You a Faster Coder. A New Study Says You’re Wrong. The gap between how fast developers feel and how fast they actually are turns out to be 39 percentage points wide. life_considered 6 min read · 1 hour ago -- Listen Share Press enter or click to view image in full size In 2025, a research group called METR ran an experiment that should worry anyone who’s convinced AI made them faster at their job. They took 16 experienced developers, all deeply familiar with massive, real-world codebases (over a million lines of code, more than 22,000 GitHub stars), and gave them 246 real tasks to complete. Some tasks were done with AI tools allowed. Some were done manually. The assignment was random, so there was no way to game which tasks got the AI advantage. Before the study started, the developers predicted AI would make them 24% faster. After finishing, they reported feeling 20% faster. The screen recordings and timestamps told a different story entirely. They were 19% slower. Not faster. Slower. The Numbers, Laid Out Plainly Predicted speedup: +24% Felt speedup after finishing: +20% Actual, measured speedup: −19% (they were slower) Total gap between feeling and reality: 39 percentage points That’s not a rounding error. That’s an entire experience of “this is working great” sitting on top of a result that was the opposite of great. So Why Did It Feel Fast When It Wasn’t? This is the part that actually matters, because it isn’t really about AI being bad. It’s about your brain being easy to fool in a specific, predictable way. Writing code from scratch is effortful. You stare at a blank file, you look things up, you type every character yourself. It feels slow because it is effortful, and effort registers in your head as time passing. Reviewing AI-generated code feels completely different. You’re not typing, you’re reading. Your brain classifies that as light work, almost restful, even when it actually eats just as much time, or more. The METR researchers found that AI tools got the easy 70% of a task right most of the time. That remaining 30%, the part with edge cases, security details, and quiet logic errors, still needed a human to catch it. Hunting that down took real, unglamorous time. It just didn’t feel like time, because it felt like reading instead of writing. There’s a hidden cost buried in that switching, too. Jumping between “describe what I want in plain English” and “now go verify this line by line” is a genuine context switch, and researchers estimate it can take up to 23 minutes to fully recover deep focus after an interruption like that. Multiply that by every prompt-and-check cycle in a two-hour task, and the lost time adds up fast, invisibly. It Gets More Interesting: The 2026 Follow-Up Here’s where most people would stop the story, but METR didn’t stop there. In early 2026, they re-ran a larger version of the study: 57 developers, 143 repositories, over 800 tasks. This time, the picture got murkier, and more honest. On the same kind of mature, complex repositories as the original study, the estimated result actually shifted toward a mild speedup, though the confidence interval still stretched from a 38% slowdown to a 9% speedup. In plain terms: still genuinely uncertain. On brand-new projects with less complexity, the average speedup was a modest 4%. Between 30% and 50% of developers admitted they’d quietly kept their easiest, most AI-friendly tasks out of the randomized comparison altogether, because they didn’t want to risk being forced to do that work manually. That last point is the real twist. The people best at using AI were opting out of the very trials meant to measure it, which means even the improved numbers are probably still too generous. What Happens at the Scale of an Entire Codebase Individual task speed is one thing. What happens across millions of lines of code, over years, is another question entirely, and the answer isn’t flattering. Get life_considered’s stories in your inbox Join Medium for free to get updates from this writer. Subscribe Subscribe Remember me for faster sign in A company called GitClear studied 211 million lines of code changes from 2020 through 2025 and found a clear shift in how software gets built once AI tools enter the picture: Refactoring (cleaning up and reorganizing code without changing what it does) dropped from 25% of all changes to under 10%, and is projected to fall to around 3% if nothing changes. Duplicated code (“copy-paste” logic instead of reusable functions) grew 4 to 8 times, now making up 12 to 15% of all new code. Code churn (code that gets rewritten or deleted within two weeks of being written) nearly doubled. Separately, an 800-developer study by Uplevel Data Labs found no meaningful improvement in how quickly finished code actually shipped, but did find a 41% increase in defects in AI-assisted pull requests. Google’s own DORA research told a similar story from a different angle: pull request volume jumped by as much as 98%, but the time it took to review each one rose by 441%, and production incidents per pull request tripled. Press enter or click to view image in full size Put simply, the bottleneck didn’t disappear. It moved. Writing code got faster. Making sure that code was actually correct, safe, and maintainable got dramatically slower. The Cost Nobody Budgets For: Your Own Skills There’s a separate study, this one from Anthropic, that points at something even harder to reverse than a slow pull request queue. Researchers had 52 junior developers learn an unfamiliar programming library, half manually, half with AI help, then tested everyone’s understanding afterward with no AI allowed. The group that used AI finished the initial task about two minutes faster, a difference so small it wasn’t statistically meaningful. But on the follow-up quiz testing real comprehension, the AI-assisted group scored 17% lower, roughly two letter grades. The steepest drop showed up specifically in debugging, the exact skill you need most once something goes wrong in production. One detail matters more than the headline number: how someone used the AI changed everything. Developers who asked the AI to explain concepts still scored well, generally 65% or higher. Developers who just let the AI generate the code for them scored under 40%. Same tool. Completely different outcome, depending on whether it was used to think, or used instead of thinking. Why This Might Be Reshaping Careers Already This isn’t just a productivity story anymore. Stanford’s own payroll data, tracking millions of workers, found that employment for software developers aged 22 to 25 has dropped almost 20% since late 2022. Part of that is likely companies assuming AI lets senior engineers absorb more work, so they’ve quietly cut entry-level hiring. Which creates a strange, closed loop: fewer juniors get hired, the juniors who are hired lean on AI and build shallower debugging skills, and the pipeline that normally produces experienced senior engineers gets thinner every year that continues. What Actually Helps, If You Use AI Tools Daily None of this means throw the tools out. It means using them without noticing the trade-offs is the actual mistake. A few things the research points toward: Match the tool to the task. AI genuinely helps in unfamiliar territory, boilerplate, new languages, greenfield projects. It struggles most exactly where your own expertise is already strongest, on code you know cold. That’s precisely where it adds friction instead of removing it. Track time, not feeling. Your sense of “that felt fast” is measurably unreliable. If you want to know whether AI is actually saving you time on a given kind of task, time yourself for a week instead of trusting the vibe. Use it to explain, not just to generate. The Anthropic study found this was the single biggest factor separating people who kept their skills sharp from people who didn’t. Ask it to walk you through the “why,” not just hand you the “what.” Budget real time for review, on purpose. If AI-written code carries a higher defect rate and a much longer review cycle, pretending review is free is how technical debt quietly piles up. Plan for it like it’s part of the job, because it is. The tools aren’t the problem. Believing your own sense of speed without ever checking it against reality is the problem, and that’s a much older, much more human mistake than anything AI introduced.

来源报道 · 1 篇 · 以下链接均前往原始媒体

← 返回精选动态 原文

更多内容