情景:
问题:
答案 0 :(得分:1)
我准备了一个简单的性能测试。我每隔3秒使用printf
函数更新一个包含5000个随机生成点的图表。您可以在此处找到传递给此函数的参数的说明:http://api.highcharts.com/highcharts/Series.setData
使用升级模块的性能 http://jsfiddle.net/kkulig/7u6ozqg8/
我的电脑输出:
setData
没有升压模块的性能 http://jsfiddle.net/kkulig/gLehoqp5/
我的电脑输出:
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
<强>答案强>