Arction / javascript-charts-performance-comparison

Public comparison of JavaScript chart libraries performance in visualizing a real-time multichannel ECG chart.
49 stars 8 forks source link

Can you add amCharts 5? #2

Open testn opened 1 year ago

testn commented 1 year ago

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

totemtec commented 1 year ago

I want to see Chart.js .

Thanks

leeoniya commented 1 year ago

this should give you an idea: https://github.com/chartjs/Chart.js/issues/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).

niiloArction commented 1 year ago

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.