Arction/javascript-charts-performance-comparison

Can you add amCharts 5?

testn opened this issue · 3 comments

testn commented

AmCharts5 seems to claim that it's much more performant. Can you help add that to the benchmark, too?

I want to see Chart.js .

Thanks

this should give you an idea: chartjs/Chart.js#11189

keep in mind that you need very specific settings and data formats to get good performance out of most charting libs. see the links in that discussion. amCharts5 is also there (yes it's much faster than v4, though still not "fast" when compared against everything else).

I want to see Chart.js .

Thanks

Added chartjs benchmark to the repo. I didn't update the results at the same time as that is a larger project.

I can, however, give some rough results from my local computer of chart.js vs lcjs:

Static line chart test:
LCJS 10 series 100_000 dp/series => 140 milliseconds
Chart.js 10 series 100_00 dp/series => 450 milliseconds

Appending line chart test:
LCJS 10 series 10_000dp/s/series 15s history => 60 FPS 30% CPU
Chart.js 1 series 2_000dp/s 15s history => 35 FPS 100% CPU

Refreshing line chart test
LCJS 10 series 100_000dp/series 60Hz => 40 FPS 90% CPU
Chart.js 10 series 10_000dp/series 60Hz => 35 FPS 100% CPU

You can also run the test benches locally on your end.

As for AmCharts 5, for now I'll just add a marker for the next time we update all the tests. I'm not expecting any groundbreaking changes there.