-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
98 changed files
with
62,696 additions
and
41,297 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,5 @@ coverage | |
.idea | ||
gen/ | ||
src/**/*.iml | ||
benchmark/reports/* | ||
benchmark/reports/* | ||
*.tgz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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, | ||
}; |
Oops, something went wrong.