tbranyen / diffhtml

diffHTML is a web framework that helps you build applications and other interactive content
https://diffhtml.org
MIT License
869 stars 47 forks source link

Would it be possible to see some metrics? #85

Closed farzd closed 7 years ago

farzd commented 8 years ago

Would it be possible to see some performance metrics, how its better than normal DOM manipulation?

https://developer.mozilla.org/en-US/docs/Web/API/Performance_API

tbranyen commented 8 years ago

Sure thing! I will say its not better than normal DOM manip, since that is what gets used in the end anyways.

jmas commented 8 years ago

Hello. I guess developers want to know a real benchmark numbers when they take DiffHTML. We need to write some benchmarks and show cases where DiffHTML is good and bad.

For example, I wrote simple benchmark here (I compare DiffHTML with browser innerHTML and with morphdom): https://gist.github.com/jmas/c7c11f1431bf97f0333d6da639b0c0cd

Maybe someone can add other DOM patch libraries to this benchmark or write better one.

Thanks.

P.S: I found another one benchmark here http://mathieuancelin.github.io/js-repaint-perfs/

tbranyen commented 7 years ago

Here are the latest metrics from the preact-perf repository using the latest version of diffHTML and I also updated choo which was unfairly getting poor perf scores. choo