Code Monkey home page Code Monkey logo

Comments (11)

vogloblinsky avatar vogloblinsky commented on May 14, 2024 2

Yes, i know this other great benchmark project, which run on Travis too :)

I only want to be focused on Web Components librairies and frameworks alternatives.

from hybrids.

smalluban avatar smalluban commented on May 14, 2024

I don't know If I suppose to see hybrids results in the first link because they are not there :) About the source code, it looks pretty good, in the terms of performance I have no comments.
For dispatching events hybrids provides dispatch helper - you then don't have to create CustomEvent explicit, but it has no impact on the perf.

from hybrids.

vogloblinsky avatar vogloblinsky commented on May 14, 2024

Sorry, the last build breaks druign the night and revert to a previous version of the page where Hybrids was not listed. Have a look now.
I will updated the code for using your dispatch helper ;)

from hybrids.

smalluban avatar smalluban commented on May 14, 2024

Cool. I looked at the results. I think they are promising, as I have never test performance before. It was my concern during the implementation, but not tested :)

Thanks for your work!

What I have to do, is to inspect your pascal triangle test. Hybrids seems to be slow on that.

One question, did you consider to add live links to the implementation? For example, if I click on hybrids, it would open new tab with working todo app :)

from hybrids.

vogloblinsky avatar vogloblinsky commented on May 14, 2024

@smalluban Yes i will add the builded implementations today.
The pascal triangle is not a real use-case but more a stress test, but yes may be i have implemented something bad..
I will post on others libs github repository today a link to this benchmark for discussing with them, before releasing a public blog post.

from hybrids.

vogloblinsky avatar vogloblinsky commented on May 14, 2024

Benchmark updated with demos : https://vogloblinsky.github.io/web-components-benchmark/

from hybrids.

smalluban avatar smalluban commented on May 14, 2024

Few issues found:

  • Demos backlink does not work
  • It opens in a new tab (maybe it is intentional)

Other case is with results. They have changed. Do you use some weighted average or other thing and call tests multiple times to avoid measurement errors?

It might be also helpful to write on what machine you are creating results.

from hybrids.

vogloblinsky avatar vogloblinsky commented on May 14, 2024

There is another release coming in Travis for backlink issue.

For results, i will explain in details in a future blog post. I call each test 10 times, and do an average.

For the machine, it is running on Travis CI, may be you can find informatiosn here in the log : https://travis-ci.org/vogloblinsky/web-components-benchmark/builds/469567920

from hybrids.

smalluban avatar smalluban commented on May 14, 2024

I am not sure if Travis CI for open source projects can provide consistent performance. Even though the relative differences between results might be similar, the absolute values can differ.

There is https://github.com/krausest/js-framework-benchmark project, which uses the best result as a reference to the rest. I could help with your case.

from hybrids.

smalluban avatar smalluban commented on May 14, 2024

I looked at hybrids core for the triangle test and one obvious improvement can be use a key index. Generated template has a helper method for setting custom key id for efficient reorder of list items.

You can find more here https://hybrids.js.org/template-engine/iteration#keys

from hybrids.

vogloblinsky avatar vogloblinsky commented on May 14, 2024

Ok, implemented, CI is running, will see if it is better in 1h.

from hybrids.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.