《白鲸》健身操
Moby Dick Workout (2022)

原始链接: https://www.hogbaysoftware.com/posts/moby-dick-workout/

为了评估生产力应用的性能,作者提出了“白鲸”压力测试。其逻辑很简单:虽然个人的待办事项列表不像小说那么长,但一款应用应能轻松处理与《白鲸》篇幅相当的文本文件,以确保它不会在用户生成的内容下崩溃。 测试过程包括加载文本并执行基本操作:滚动、调整窗口大小、剪切/粘贴、撤销/重做以及在文档中间输入内容。目标是通过活动监视器观察是否存在卡顿、滚动跳转或内存占用过高的情况。 作者认为,现代计算机的速度足以轻松处理这种规模的文本文件。如果一款应用无法通过该测试,则说明其优化较差。虽然这个基准测试并非衡量应用整体质量的绝对指标,但它作为一个可靠的完整性检查,能确保软件不会因数据积累而运行吃力。

Hacker News 最新 | 过往 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 Moby Dick Workout (hogbaysoftware.com) 7 点,由 helloplanets 发布于 59 分钟前 | 隐藏 | 过往 | 收藏 | 1 条评论 帮助 gnabgib 57 分钟前 [–] (2022) 回复 指导方针 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索:
相关文章

原文

How many items should your todo list handle? Not the most pressing question in the world, but one that I sometimes wonder about.

I think productivity apps should scale to “user generated” content. I don’t expect every app to load multi-gigabyte log files, but it should handle what I can write myself.

I use “Moby Dick” to test that. I know it’s longer and uses bigger words than anything I’ll write. If the app works well with “Moby Dick” then that’s a good indication that it will handle my needs also.

Here’s the test:

  1. Open “Moby Dick”. Fast?
  2. Scroll to end. Resize the window. Fast?
  3. Scroll to middle. Resize the window. Fast?
  4. Select all. Cut, Paste, Undo. Redo. App still standing?
  5. Edit some content near the middle. No typing lag? No scroll jumping?
  6. Repeat 2-5 until you get bored, then open macOS Activity Monitor and see if it’s using acceptable amount of Memory.

Computers are really fast, Moby Dick is tiny compared to this fastness. If an app doesn’t pass this test that suggests to me that there might be problems. This is just a test–a good app for you might fail this test, a bad app for you might pass.

Test Files:


联系我们 contact @ memedata.com