Skip to content
tilomitra edited this page Oct 22, 2012 · 4 revisions

Comparing Performance across YUI Versions

We're learning towards using BenchmarkJS to run our performance tests in YUI. One of the valuable data-points to capture is the performance of a component across different YUI versions. We'll be able to capture this once components have their performance tests defined.

The yui-benchmark repo has a simple example that uses BenchmarkJS along with Ryan Grove's (@rgrove) multi YUI module to compare performance across a local YUI and an older version.

Check out the yui-benchmark repo.

The test results using the multi module were compared (running sequentially) to running these tests in separate windows (no cache) and the results were very similar. This implies that this method of comparison is pretty accurate.

If you want to compare performance of your components across different YUI versions using Benchmark, I recommend:

  • using the index.html in the repo as a template
  • Using the event-custom-benchmark.js file as a template for performance tests.
  • pulling in multi.js into src/common/ and referencing it from there.

This is still rough, and work's in progress, so expect changes and new developments.