[英]Highcharts: rapid, real-time data updates in high volume line charts using boost
場景:
問題:
我准備了一個簡單的性能測試。 我每3秒使用setData
函數用5000個隨機生成的點更新一個圖表。 您可以在此處找到傳遞給此函數的參數的說明: http : //api.highcharts.com/highcharts/Series.setData
提升模塊的性能: http : //jsfiddle.net/kkulig/7u6ozqg8/
在我的電腦上輸出:
time with boost: 189.785888671875ms
time with boost: 109.576904296875ms
time with boost: 159.59326171875ms
time with boost: 75.766845703125ms
time with boost: 132.65625ms
time with boost: 174.887939453125ms
time with boost: 41.648193359375ms
time with boost: 54.340087890625ms
time with boost: 72.6669921875ms
不帶Boost模塊的性能: http : //jsfiddle.net/kkulig/gLehoqp5/
在我的PC上輸出:
time without boost: 211.60595703125ms
time without boost: 146.89501953125ms
time without boost: 180.163818359375ms
time without boost: 156.8388671875ms
time without boost: 248.77197265625ms
time without boost: 149.34130859375ms
time without boost: 142.1357421875ms
time without boost: 189.8759765625ms
time without boost: 203.60009765625ms
答案
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.