Replies: 2 comments 9 replies
-
Hi @btakita, That's a great question! I think VanJS is a very thin layer on top of the native DOM APIs. As for why the clock-time benchmark of VanJS is slightly slower (though the difference is quite small) than some frameworks, I think the main reason is that the specific DOM API VanJS is choosing might be slightly slower than the API other frameworks are choosing, which is very specific to browsers' implementation details. I don't think much of the performance difference is due to VanJS's JS code itself. Currently I have no immediate plan to further improve the benchmark result. I am not seeing for VanJS's designated use cases, the small difference in benchmark test has any significant impact to the actual user experience. |
Beta Was this translation helpful? Give feedback.
-
Hi @btakita, There are several factors that will affect your page performance, but DOM interactions are usually not that important. I made a new post on this topic here |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm taking a look at Van & it looks great! I mostly use SolidJS for its speed, signals, & smallish size (large compared to Van). According to the Krausest benchmark, Van has a slightly better startup time & is notably more memory efficient than SolidJS. Solid has slightly (in clock time terms) better performance benchmarks particularly on the create & modify benchmarks. Do you think Van's benchmark performance will continue to improve? Are some optimizations not possible without significantly increasing the size of Van?
Beta Was this translation helpful? Give feedback.
All reactions