Skip to content

Commit d48f0ba

Browse files
committed
Update sqlglot to V2
Fix test cases for sqlglot v2
1 parent ab1a999 commit d48f0ba

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

pyperformance/data-files/benchmarks/MANIFEST

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ spectral_norm <local>
8383
sphinx <local>
8484
sqlalchemy_declarative <local>
8585
sqlalchemy_imperative <local>
86-
sqlglot <local>
87-
sqlglot_parse <local:sqlglot>
88-
sqlglot_transpile <local:sqlglot>
89-
sqlglot_optimize <local:sqlglot>
86+
sqlglot_v2 <local>
87+
sqlglot_v2_parse <local:sqlglot_v2>
88+
sqlglot_v2_transpile <local:sqlglot_v2>
89+
sqlglot_v2_optimize <local:sqlglot_v2>
9090
sqlite_synth <local>
9191
sympy <local>
9292
telco <local>
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[tool.pyperformance]
2-
name = "sqlglot_optimize"
2+
name = "sqlglot_v2_optimize"
33
extra_opts = ["optimize"]
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[tool.pyperformance]
2-
name = "sqlglot_parse"
2+
name = "sqlglot_v2_parse"
33
extra_opts = ["parse"]
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[tool.pyperformance]
2-
name = "sqlglot_transpile"
2+
name = "sqlglot_v2_transpile"
33
extra_opts = ["transpile"]
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[project]
2-
name = "pyperformance_bm_sqlglot"
2+
name = "pyperformance_bm_sqlglot_v2"
33
requires-python = ">=3.7"
44
dependencies = [
55
"pyperf",
6-
"sqlglot",
6+
"sqlglot_v2",
77
]
88
urls = {repository = "https://github.com/python/pyperformance"}
99
dynamic = ["version"]
1010

1111
[tool.pyperformance]
12-
name = "sqlglot"
12+
name = "sqlglot_v2"
1313
extra_opts = ["normalize"]

pyperformance/data-files/benchmarks/bm_sqlglot/run_benchmark.py renamed to pyperformance/data-files/benchmarks/bm_sqlglot_v2/run_benchmark.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,9 @@ def add_parser_args(parser):
186186

187187
if __name__ == "__main__":
188188
runner = pyperf.Runner(add_cmdline_args=add_cmdline_args)
189-
runner.metadata['description'] = "SQLGlot benchmark"
189+
runner.metadata['description'] = "SQLGlot V2 benchmark"
190190
add_parser_args(runner.argparser)
191191
args = runner.parse_args()
192192
benchmark = args.benchmark
193193

194-
runner.bench_time_func(f"sqlglot_{benchmark}", BENCHMARKS[benchmark])
194+
runner.bench_time_func(f"sqlglot_v2_{benchmark}", BENCHMARKS[benchmark])

0 commit comments

Comments
 (0)