Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Support benchmark for all languages
使用
运行基准测试命令
终端中选择对应需要基准性能测试的SQL语言
配置信息
在benchmark/run.ts中维护配置信息
注意点
默认对
testTypes
中的方法传入的参数为对应语言的sql字符串,如需自定义参数,在/benchmark/data/目录下新建params.json文件进行配置,如需取默认的sql参数,则可传入$sql
,可参考如下运行结果
默认不保存每次的测试结果,测试结果信息会保存在/benchmark/reports/xxx.benchmark.md,以下是一次结果案例