-
Notifications
You must be signed in to change notification settings - Fork 101
/
Copy pathbenchmark.config.ts
87 lines (84 loc) · 2.08 KB
/
benchmark.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
import { Language } from './sqlBenchmark';
type TestFile = {
/** Benchmark Name */
name: string;
/** Test sql name */
sqlFileName: string;
/** Test run times */
loopTimes?: number;
/** Test method name of parser */
testTypes: string[];
/** Exclude languages */
excludes?: Language[];
/** Include languages */
includes?: Language[];
};
const testFiles: TestFile[] = [
{
name: 'Query Collection',
sqlFileName: 'select.sql',
testTypes: ['getAllTokens', 'validate'],
},
{
name: 'Update Table',
sqlFileName: 'update.sql',
excludes: ['flink'],
testTypes: ['getAllTokens', 'validate'],
},
{
name: 'Insert Columns',
sqlFileName: 'insert.sql',
testTypes: ['getAllTokens', 'validate'],
},
{
name: 'Create Table',
sqlFileName: 'create.sql',
excludes: ['flink'],
testTypes: ['getAllTokens', 'validate'],
},
{
name: 'Create Table',
sqlFileName: 'create_flink.sql',
includes: ['flink'],
testTypes: ['getAllTokens', 'validate'],
},
{
name: 'Split SQL',
sqlFileName: 'split.sql',
excludes: ['flink'],
testTypes: ['splitSQLByStatement'],
},
{
name: 'Split SQL',
sqlFileName: 'split_flink.sql',
includes: ['flink'],
testTypes: ['splitSQLByStatement'],
},
{
name: 'Collect Entities',
sqlFileName: 'suggestion.sql',
excludes: ['flink'],
testTypes: ['getAllEntities'],
},
{
name: 'Collect Entities',
sqlFileName: 'suggestion_flink.sql',
includes: ['flink'],
testTypes: ['getAllEntities'],
},
{
name: 'Suggestion',
sqlFileName: 'suggestion.sql',
excludes: ['flink'],
testTypes: ['getSuggestionAtCaretPosition'],
},
{
name: 'Suggestion',
sqlFileName: 'suggestion_flink.sql',
includes: ['flink'],
testTypes: ['getSuggestionAtCaretPosition'],
},
];
export default {
testFiles,
};