TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Made a small JavaScript benchmarking app – BenchJS

33 点作者 _andrei_4 个月前

1 comment

jitl4 个月前
Mostly I want to benchmark code in our production monorepo, so a web tool doesn’t make much sense. We have a bunch of data structure code and standard utility libraries so it’s not feasible to copy everything into a web form.<p>When doing data structure work I’ve started writing micro benchmark files with mitata (<a href="https:&#x2F;&#x2F;github.com&#x2F;evanwashere&#x2F;mitata">https:&#x2F;&#x2F;github.com&#x2F;evanwashere&#x2F;mitata</a>) which does a decent job running GC between runs and outputs some very cute graphs and such. I recently rewrote a core container class we use at Notion and for a 5% speed up on a bunch of our public API routes.<p>OP, I see you have a mitata-inspired benchmark library “benchmate” (<a href="https:&#x2F;&#x2F;github.com&#x2F;3rd&#x2F;benchmate&#x2F;tree&#x2F;master">https:&#x2F;&#x2F;github.com&#x2F;3rd&#x2F;benchmate&#x2F;tree&#x2F;master</a>), I’m curious about difference from mitata, what was missing from it, features added? I looked a bit at the code and it’s certainly easier to read… mitata codebase feels like C written by someone who’s too smart.
评论 #42583317 未加载
评论 #42585535 未加载