Performance test - Mikado vs MikadoProxy React vs Mithril #68
Replies: 4 comments 2 replies
-
Interesting test, tanks for providing, I will move this to discussion to keep this informations avilable. The implementation looks well done, nothing to improve. The next version will provide almost same performance, allthough I found a performance bug in the current version which could help the upcoming version to perform even better. |
Beta Was this translation helpful? Give feedback.
-
I made a short benchmark test just for fun, rendering 2500 full sized templates:
It looks there is even more to get out :) |
Beta Was this translation helpful? Give feedback.
-
@anoxxxy I've found a minor improvement you could add to your implementation: const view = Mikado(document.body, tplC, { cache: true }); The cache is just useful for the non-proxy version. |
Beta Was this translation helpful? Give feedback.
-
@ts-thomas where could we access the Beta version from this test? |
Beta Was this translation helpful? Give feedback.
-
Hi,
I recently conducted a performance test to compare the rendering speed of
Mikado v0.7.64
, olderMithril v1.0.0
, andReact v15.7.0
. In the test, Mikado performed the fastest, followed by Mithril, while React was the slowest. The test involved inserting 20,000 "hi"<div>
elements into the DOM.I also performed a test between
Mikado v0.7.64
, newerReact v18.2.0
, andMithril v2.2.3
. In this test, Mikado was almost twice as fast as Mithril v2.2.3 and nearly three times as fast as React v18.2.0.However, I want to mention that Mikado continued to be the fastest even when inserting more than 100,000 elements into the DOM.
As a newcomer to Mikado, I'm not sure if the coding I added for testing is fair. Nonetheless, I'm impressed with the performance of Mikado and hope it remains fast in future updates.
@ts-thomas, when making future updates to Mikado, please ensure that its performance doesn't degrade. Keep up the good work, and I'm looking forward to seeing the upcoming update.
For reference, here are the test results with the corresponding jsfiddle links for testing:
If there are any ways to further optimize the Mikado performance rendering in the code provided, please let me know.
regards Anoxy
Beta Was this translation helpful? Give feedback.
All reactions