Holi Labs
1 分钟 性能

如何公平比较 WASM 与 JavaScript

一份可复现的浏览器基准清单,涵盖启动、传输、内存和用户可见延迟。

#performance #wasm #javascript
目录
记录完整环境 报告分布而非单个数字 用产品成本做决定

基准测试应回答用户会感受到的问题,例如首次打开、首次生成或连续编辑的延迟。只测一个热循环会忽略下载、编译和初始化成本。

记录完整环境

记录浏览器版本、操作系统、设备、节能状态、缓存状态、构建模式和资源大小。分别测试冷启动与热运行,并让两种实现完成相同工作、生成相同结果。

报告分布而非单个数字

先预热,再执行足够多轮次。报告中位数和高百分位,并保留异常值说明。同步任务还要观察主线程阻塞和交互延迟,较快的核心并不一定带来较快的产品。

用产品成本做决定

同时比较包体、初始化、内存、可维护性和回退路径。只有当 WASM 带来可重复、用户可见的收益时才值得保留,并将基准脚本、输入和环境与结论一起发布。

上一篇 为什么 Holi QR 保留一个小型 Rust 核心 下一篇 何时 WebGPU 背景值得它的成本

本地偏好

设置

这些偏好仅保存在此浏览器中,无需账户。

外观

主题 应用于此设备

导航

首页 Holi.tools 文章
会话 无需账户 · 本地偏好

当前 v0.6.0

版本

让 Holi 持续可用

支持独立工具

捐赠用于支付托管和开发费用,同时不强制要求账户或远程存储。

联系
v0.6.0 2026-09-02
  • Defined Tutorials, Field notes, Experiments, and Papers as formats in one Holi Labs publication
  • Added a localized Papers collection with a subtle crane category mark across all seven languages
  • Added format filters and the axolotl identity while preserving one shared library and privacy shell
v0.5.0 2026-09-02
  • Extended the Labs library shell, privacy summary, search, filters, and article routes to all seven Holi languages
  • Localized the shared product dock and removed its unstable outer glow
  • Kept code blocks, URLs, file paths, and technical product names intact across translated tutorials
v0.4.0 2026-09-02
  • Rebuilt Labs as a practical library with featured reading, search, category filters, and reading time
  • Published seven complete English and Spanish tutorials, guides, and engineering notes
  • Added coherent light and dark Labs palettes and limited public routes to fully translated locales
v0.3.0 2026-09-02
  • Unified Configuration, Versions, and Privacy in the shared Holi product dock
  • Added local theme and language preferences plus Labs navigation inside Configuration
  • Placed donations, support, and the visible Shadow Log inside Versions
v0.2.1 2026-09-02
  • Separated privacy and Version Log into left and right floating controls
  • Moved privacy facts into a dedicated glass drawer
v0.2.0 2026-09-02
  • Added a visible privacy summary to experiment, article, and tag pages
  • Made the current version and Shadow Log available throughout Labs
  • Reframed Labs as a research publication rather than a product backlog
v0.1.1 2026-01-12
  • Added English and Spanish routes
  • Synchronized the content collection
  • Improved stability
v0.1.0 2026-01-12
  • Created the first Labs content collection
  • Published initial graphics and performance notes

隐私概览

隐私摘要

阅读和导出文章不会向 Holi 提交个人文件。Cloudflare 可能看到你的 IP 和访问时间。

内容
Labs 发布静态文章,不会请求你的本地文档。
导出
复制摘要以及生成 Markdown 或打印输出均在浏览器中完成。
托管
Cloudflare 可能处理 IP、时间、请求路径、流量和路由数据。
外部链接
捐赠、支持和外部来源只会在你主动选择时打开。

关于

Holi Labs

前沿研究、WebGPU 实验与技术论文。

浏览 Holi.tools

捐赠

捐赠

如果 Holi.tools 对你有帮助,可以在这里支持持续开发:

GitHub Sponsors Ko-fi

支持与建议

支持与建议

如需支持、报告错误或提出建议:

电子邮件 [email protected] GitHub Issues

源代码: https://github.com/HugoAndresAmayaChairez/holi.tools