跳到主内容
@wquguru
精选85Rohan Paul技巧与观点

AI代理8小时让SQLite提速59%,成本不到150美元

Making SQLite 5% faster would already be powerful.

原文
发到 X
推荐理由

做AI编程代理或性能优化的同学必看,这个案例展示了代理在真实复杂代码库上的高效优化能力,值得研究其方法和流程。

Making SQLite 5% faster would already be powerful.

让 SQLite 提速 5% 已经很有分量了。

Here, an AI agent, KISS Sorcar, got 59% improvement in under 8 hours, for less than $150.

而这里,一个 AI 代理 KISS Sorcar 在不到 8 小时内实现了 59% 的提升,成本不到 150 美元。

GitHub repo below:

GitHub 仓库如下:

SQLite is one of the most battle-tested codebases on earth. Its team has spent nearly 20 years shaving off tiny performance gains.

SQLite 是地球上经过最充分实战检验的代码库之一。其团队花了近 20 年时间一点点榨取性能提升。

And it wasn't optimizing some toy benchmark. The gains showed up across transaction-heavy workloads, analytical queries, and blob I/O.

而且优化的并非某个玩具基准测试。这些提升在事务密集型负载、分析查询和 blob I/O 中均有体现。

The agent found several places where the default setup was paying unnecessary costs, especially around how transactions hit disk, then changed the code and configuration, benchmarked everything, and attacked its own changes for bugs.

该代理发现了默认设置中几处不必要的开销,尤其是事务落盘的方式,随后修改了代码和配置,对所有内容进行了基准测试,并针对自身改动寻找 bug。

Over 1 million SQLite tests still pass.

超过 100 万个 SQLite 测试仍然通过。

This may be one of the more useful demonstrations of where coding agents are heading.

这或许是展示编码代理未来发展方向的最有力示例之一。

  • 2.06x on the official speedtest1 (~30k statements) - 1.90x on TATP (OLTP mix: 400k transactions, 100k subscribers) - 1.30x on the Star Schema Benchmark (13 queries x 2, 1.5M-row lineorder) - 1.25x on kvtest (blob I/O: 40k x 10 KB, seq + random + update)
  • 官方 speedtest1 提升 2.06 倍(约 3 万条语句) - TATP 提升 1.90 倍(OLTP 混合:40 万笔事务,10 万订阅者) - 星型模式基准提升 1.30 倍(13 个查询 x 2,150 万行 lineorder) - kvtest 提升 1.25 倍(blob I/O:4 万 x 10 KB,顺序 + 随机 + 更新)

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

相似阅读

关联信息,但可能不是同一事件