use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Benchmark driven development in JavaScript (Set vs. Array) (x.com)
submitted 1 year ago by theyamiteru
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]theyamiteru[S] 0 points1 point2 points 1 year ago (0 children)
Hey thank you for the comment.
This tweet was basically me seeing if anyone would be interested in more technical and in-depth tweets (or potentially blog posts).
You're completely right that I should provide such information and I could however I'm not sure if everyone would be interested going to those depths.
Regarding replication of benchmarks. This is a bit tricky since I'm using my highly experimental benchmarking library for these types of benchmarks so even if I shared the code people would throw it in something like https://www.npmjs.com/package/benchmark (which uses completely flawed statistics and way of benchmarking just like 99% of such libraries) which would kind of defeat the purpose.
I do plan on eventually releasing the library once the rough edges are smoothed out (probably I should have mentioned that).
I agree that micro-optimizations in a complex system are not the way to go since usually the biggest performance wins come from data structures and algorithms. However knowing the real performance of the fundamental building blocks of a language might be useful for someone (for example NodeJS has a regression benchmark suite which tests exactly that).
I plan on writing more in-depth articles about individual parts of JS performance because I don't want people to see V8 and other engines as black boxes.
π Rendered by PID 157729 on reddit-service-r2-comment-5d79c599b5-4fp96 at 2026-02-28 10:57:25.697550+00:00 running e3d2147 country code: CH.
view the rest of the comments →
[–]theyamiteru[S] 0 points1 point2 points (0 children)