提交 d0756f70 编写于 作者: O Ovilia

line sampling benchmark

上级 2ee3bbfe
......@@ -11,13 +11,10 @@ define(function (require) {
el: '#app',
data: {
caseNames: ['line'],
caseNames: ['line sampling'],
amounts: (function () {
var arr = [];
for (var i = 5000; i > 4000; i -= 50) {
arr.push(i);
}
for (var i = 4000; i > 0; i -= 200) {
for (var i = 1000000; i > 0; i -= 10000) {
arr.push(i);
}
return arr;
......
......@@ -20,6 +20,7 @@ define(function (require) {
var option = null;
switch (name) {
case 'line':
case 'line sampling':
case 'bar':
case 'scatter':
option = {
......@@ -50,6 +51,11 @@ define(function (require) {
return null;
}
if (name === 'line sampling') {
option.series.sampling = 'max';
option.series.type = 'line';
}
option.animation = false;
return new TestCase(name, option);
};
......
......@@ -46,7 +46,7 @@ define(function (require) {
// cancel if last test time of the same caseName is larger than 5
var test = factory.create(this.caseNames[cid], this.amounts[aid]);
var time = Math.floor(test.runTime(20));
var time = Math.floor(test.runTime(50));
if (!this.times[aid]) {
this.times[aid] = [];
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册