按年被提到
20162016 · 3 次2026
编程语言与编译器›编译器与运行时优化·arXiv:1602.00602 · cs.PL

Virtual Machine Warmup Blows Hot and Cold

虚拟机预热忽冷忽热
Edd Barrett, Carl Friedrich Bolz-Tereick, Rebecca Killick, Sarah Mount, Laurence Tratt · 2016

统计分析显示许多 JIT 虚拟机基准并不能稳定达到峰值性能

开始阅读 ↗PDFalphaXiv 讨论
被推荐 · 5 人首次 2016-02-02 · 最近 2025-12-29
5不同的人
7活跃月份
7讨论串
117被引(OpenAlex)

传统观点认为带 JIT 编译器的虚拟机分两个阶段执行程序:先预热确定哪些部分值得动态编译,之后进入峰值性能的稳态,而测量方法几乎总是丢弃预热阶段的数据。作者提出基于变点分析的全自动统计方法,判断程序是否达到稳态、该稳态是否为峰值性能。结果表明,即使在最受控的条件下,小而确定、被广泛研究的微基准在多种常见虚拟机上也常常达不到峰值稳态;在 3 台不同机器上重复实验,最多只有 43.5% 的 <VM, 基准> 组合能稳定达到峰值稳态。

HN 为什么提它

HN 上的人把它当作更严谨的基准测试研究,用来说明 JIT 的稳态性能难以预测、也难以可靠测量,不能保证获得稳定的好性能。

实证研究难度 3 / 5约 60 分钟经得起时间
读之前最好知道
1JIT 编译与虚拟机
2性能基准测试方法
3变点分析(changepoint analysis)
4统计推断基础

HN 书评

推荐在前,同类按时间 · 每篇最多保留 20 条,统计用全部提及
推荐etiene · 2017-09

“Here is an example of more rigorous research: Virtual Machine Warmup Blows Hot and Cold”

把它当作更严谨的基准研究范例
Energy Efficiency Across Programming Languages原评论 ↗
推荐yencabulator · 2022-08

“Virtual Machine Warmup Blows Hot and Cold is a good exploration of why this just doesn't work out”

推荐它来说明 VM 预热为何常常达不到稳定性能
Big changes ahead for Deno原评论 ↗
引用mafribe · 2016-03

“To see that just look at a program, and predict how long the warm-up will take. Whoops... unknown [1].”

拿它说明程序的预热时间难以预测
CS143: Compilers (2011)原评论 ↗
引用mafribe · 2016-12

“Indeed the performance benefits of JITing have been difficult to measure: Virtual Machine Warmup Blows Hot and Cold”

引用它说明 JIT 的性能收益很难测准
Nectar: A Native JavaScript Compiler Inspired by Crystal Lang and Nim Lang原评论 ↗
引用ltratt · 2022-11

“The snapshots of the paper we released are at Virtual Machine Warmup Blows Hot and Cold”

作者贴出论文快照,说明结论的适用范围
More evidence for problems in VM warmup原评论 ↗
引用yencabulator · 2025-12

“JITs are a great magic trick but it's nowhere near guaranteed you'll get good steady performance out of one, especially when the workload is wide not narrow.”

拿它说明 JIT 不保证稳定的好性能,尤其是负载分散时
We "solved" C10K years ago yet we keep reinventing it原评论 ↗
被提交为 story · 1 次