Skip to content

Commit b2b6d3b

Browse files
committed
test data points between 64K to 128K with 1K step
1 parent 0f80d1b commit b2b6d3b

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

test/jasmine/performance_tests/assets/test_cases.js

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
var tests = [];
22

3+
/*
34
for(let traceType of ['image', 'heatmap', 'contour']) {
45
for(let m of [10, 20, 40, 80, 160, 320, 640, 1280]) {
56
let nx = 5 * m;
@@ -15,12 +16,23 @@ for(let traceType of ['image', 'heatmap', 'contour']) {
1516
});
1617
}
1718
}
19+
*/
1820

19-
var allN = [1000, 2000, 4000, 8000, 16000, 32000, 64000, 128000];
20-
var allNTraces = [1, /*10, */100]
21+
function fillArrayFromToBy(start, end, step) {
22+
const result = [];
23+
for (let i = start; i <= end; i += step) {
24+
result.push(i);
25+
}
26+
return result;
27+
}
28+
29+
//var allN = [1000, 2000, 4000, 8000, 16000, 32000, 64000, 128000];
30+
var allN = fillArrayFromToBy(64000, 128000, 1000);
31+
//var allNTraces = [1, /*10, */100]
32+
var allNTraces = [1]
2133

22-
for(let traceType of ['box', 'violin']) {
23-
for(let mode of ['no_points', 'all_points']) {
34+
for(let traceType of [/*'box', */'violin']) {
35+
for(let mode of [/*'no_points', */'all_points']) {
2436
for(let nTraces of allNTraces) {
2537
for(let n of allN) {
2638
tests.push({
@@ -40,7 +52,7 @@ for(let traceType of ['box', 'violin']) {
4052
}
4153

4254
for(let traceType of ['scatter', 'scattergl', 'scattergeo']) {
43-
for(let mode of ['markers', 'lines', 'markers+lines']) {
55+
for(let mode of [/*'markers', 'lines', */'markers+lines']) {
4456
for(let nTraces of allNTraces) {
4557
for(let n of allN) {
4658
tests.push({
@@ -58,8 +70,8 @@ for(let traceType of ['scatter', 'scattergl', 'scattergeo']) {
5870
}
5971
}
6072

61-
for(let traceType of ['bar', 'histogram']) {
62-
for(let mode of ['group', 'stack', 'overlay']) {
73+
for(let traceType of ['bar'/*, 'histogram'*/]) {
74+
for(let mode of ['group'/*, 'stack', 'overlay'*/]) {
6375
for(let nTraces of allNTraces) {
6476
for(let n of allN) {
6577
tests.push({

0 commit comments

Comments
 (0)