million
million copied to clipboard
Add Million.js to js-framework-benchmark
Is your feature request related to a problem? Please describe. Local benchmark on my machine is 3 times slower relatively to others, million results similar to virtual-dom.
Describe the solution you'd like Add cpu/memory/os and browser version to benchmark page
Describe alternatives you've considered Use external service for benchmarking or allow user to post here results and then collect them to benchmark page, for example:
MacBook Air M1, 8 GB, Safari v14.1.1:
million x 26,400 ops/sec ±0.69% (24 runs sampled)
virtual-dom x 21,543 ops/sec ±0.54% (65 runs sampled)
vanilla x 3,865 ops/sec ±0.94% (24 runs sampled)
baseline x 81,198 ops/sec ±2.52% (16 runs sampled)
Fastest is baseline
It seems like this is not an difference with your machine, a newer update of million has made it slower. In regards to the external service - I'm not sure of anything that could provide some functionality like this. Investigating now
Results for google chrome looks good
https://million-benchmarks.netlify.app/
MacBook Air M1, 8 GB, Google Chrome v91.0.4472.106:
list-render:
million x 24,017 ops/sec ±9.10% (22 runs sampled)
virtual-dom x 18,777 ops/sec ±11.24% (47 runs sampled)
vanilla x 8,669 ops/sec ±0.74% (48 runs sampled)
baseline x 19,539 ops/sec ±0.48% (20 runs sampled)
Fastest is million
Interesting - I might be mistaken then.
Also, it would be very helpful if you had time to add million.js to js-framework-benchmark https://krausest.github.io/js-framework-benchmark/current.html
@aidenybai ill do this when I get home
CPU should not be needed as the CPU would proportionally effect all other frameworks and libraries we are benchmarking against but I will look into getting millionjs onto external benchmarking sites as well as benchmarking different browsers.
i'll be taking this on 👍
@anddddrew Just as a guideline for this issue, you'll need to fork https://github.com/krausest/js-framework-benchmark.
They have some specific rules you need to follow, let me know if you need any help with the benchmarks :)
Hey @anddddrew, just pinging to see if there are any updates or if you need any help with this task. If you're not available, no worries, I can take over this issue
If anyone has any questions about the rules or details on what works well in the benchmark I'm open to answering them. I'm very familiar with this benchmark.
Also specifically because this is a VDOM library I'd look at this benchmark too: https://localvoid.github.io/uibench/
Spoke to @anddddrew yesterday - he wasn't able to get around to this, but I started working on it yesterday (see here) and plan on finishing tonight. Will post here/dm if I have any questions!
Update: we're close! Expect a PR from @jasonappah sometime in the next 24h!
Just created https://github.com/krausest/js-framework-benchmark/pull/1074 :)
https://github.com/krausest/js-framework-benchmark/pull/1074 is still a draft, right?
Yes, still a draft
If keyed isn't working it may be an implementation issue in million vdom I suspect. I think it's okay to go with non-keyed for now so we at least have some initial benchmarks @jasonappah.
we did it!!