下面数据是对比 omi-transform 和 react-transform,两种方式使用 chrome profiles 了一把。

react-transform:

  • Omi 方式在9254ms秒内CPU耗时花费近似700ms

在不进行 profiles 就能想象到 react 是一定会更慢一些,因为 state 的改变要走把 react 生命周期走一遍,但是可以看到 react 的耗时还是在可以接受的范围,没有慢到难以接受。