Fast Silverlight Charts

Chirag

Hi,

You know that we are working on optimizing the performance of charts. I am happy to share that we are done optimizing the overall performance of the charts – QuickLine chart to start with. Both initial render (drawing chart for the first time) & real-time render (updating chart in real-time) are now blazing fast. With these changes, Visifire is one of the fastest Silverlight charts! This blog contains benchmark figures & samples to corroborate our claim.

You’d feel the need of faster charts only when there is high number of datapoints. For less datapoints any charting component would suffice. Time taken by a component to plot datapoints on a chart for the first time (initial render) is a key metric to decide the performance. We did a small exercise to calculate the number of datapoints a charting component could draw in one second. For comparison we are using Visiblox, a fairly quick chart from Scott Logic. We supplied 10,000 through 50,000 datapoints to both charting components. We repeated the exercise to get 10 sample figures. Later, took an average to find out the number of datapoints that could be drawn in a second. Visifire could draw anywhere between 14,500 to 13,200 datapoints in a second. Whereas Visiblox could draw a maximum of 6,800 datapoints & the performance degraded drastically as the datapoints increased. Below are the benchmark figures:

Visifire, Visiblox - Charting Performance Comparison

Note: More the datapoints per second, faster the chart.

Embedded below is the application used to calculate the benchmark figures. You can play around with it & decide who is fast!

Get Microsoft Silverlight

Get Microsoft Silverlight

Note: Lesser the time taken, faster the chart.

Measuring framerate is a good way of finding the real-time rendering performance of a chart. We have just borrowed some samples from Visiblox post. You can play around with the following sample & decide who is fast!

Get Microsoft Silverlight

Get Microsoft Silverlight

Note: More the frames per second, faster the chart.

The source code of the above samples is available in these archives [sample1, sample2] for you to verify. The samples don’t contain charting libraries & are to be downloaded separately. Feel free to comment on this exercise.

Cheers,
Chirag
Team Visifire
Fire up your imagination!


Comments

  1. Jane
    December 5th, 2011 | 8:32 pm

    which version of the library is used in this sample?

  2. Jane
    December 5th, 2011 | 8:34 pm

    what version of library this samples used?

  3. Jane
    December 5th, 2011 | 8:34 pm

    what version of library this sample used?

  4. vivek
    December 5th, 2011 | 11:34 pm

    You have to use Visifire 4.5.0-3 beta.

Leave a reply