Git Product home page Git Product logo

blog-dombench's People

Contributors

sebadoom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

blog-dombench's Issues

Run only one benchmark for more accurate results

Currently, the run-benchmarks.js runs all the default benchmarks that that browser-perf runs. This may include additional javascript on the page that could skew the numbers a little. Does it make sense to only run specific benchmarks so that we get more accurate numbers ?

For example, we could specify a metrics: ['TimelineMetrics'] to only collect Timeline data when we are running the tests. This way, javascript related to other metrics like Network are not run on the page, this giving a more accurate reading.

Different results in Chrome

I noticed that you mentioned running this test on a Core i5 with Chromium. I recently attempted the same test on Chrome / Mac OSX with a 2.5 Ghz Core i7 and had much different results. Can you possibly speak to this? I also ensured that your branch of browser-perf was used (to ensure memory analysis). Could the homebrew installed python server have anything to do with this?

See my results here:
https://github.com/priley86/blog-dombench/blob/dombench2/results.csv

Flawed benchmark interpretation?

Hi. From reading your findings over at the auth0 blog, I'm wondering if you might be interpreting several of the results incorrectly. As you state:

Layout/Paint. This graph shows the time spent by the browser doing re-layout operations (i.e. creating an internal representation of the DOM tree after changes). I find it surprising that cito.js is the slowest in this case. Subjective performance would tell otherwise, as both cito.js and Incremental DOM feel quite snappy when interacting directly with the browser.

The less time each framework has spent doing layout/paint does not really mean that it is faster. I could make a framework that was incredibly slow, resulting in very little time being spent in layout/paint, simply because it spends the time doing other things? Also, the more rendering loops a framework manages to push during the benchmark (higher fps) - the more time will be spent in layout/paint (if the frameworks invalidate/update the same amount of dom nodes on each render).

I guess a better benchmark would be to run each implementation for a specific amount of runs - and then compare the time spent doing this (this will also give a fairer result of how much time is spent in gc etc, since all implementations have done the same amount of work). I think the results would be radically different :)

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.