localvoid / kivi

[UNMAINTAINED] Javascript (TypeScript) library for building web user interfaces
MIT License
145 stars 8 forks source link

Vanilla-js still faster than kivi #6

Open jklmli opened 7 years ago

jklmli commented 7 years ago

http://vanilla-js.com/ is a serious opponent - how do we beat them? I see we've made significant progress in the last benchmark round, how can we do better next time?:

http://stefankrause.net/js-frameworks-benchmark4/webdriver-ts/table.html http://stefankrause.net/js-frameworks-benchmark5/webdriver-ts/table.html

How do we plan to catch up?

localvoid commented 7 years ago

We don't need to beat them :)

This benchmark is using test cases that are easy to implement in vanilla. And for some test cases like "delete" it still requires some tricks that aren't many people know about, and I can't imagine that someone will write real application this way.

uibench has way much more test cases, and it would be extremely hard to create efficient vanilla implementation for this benchmark.

localvoid commented 7 years ago

I see we've made significant progress in the last benchmark round

kivi implementation hasn't changed since round4. This benchmark had some serious problems before round5 and this table was completely useless to the wide audience because it compared implementations that preserve internal state against implementations that are losing it.

leeoniya commented 7 years ago

@localvoid can probably beat vanillaJS with his bear hands :D

in Soviet Russia...

every-zoo-is-a-petting-zoo-bear