-
-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In the current sqlglot normalized, conjunction string would be modified to its normalized form after the first iteration. And for the remaining iterations, normalization function was applied to the normalized form of the original conjunction string. Therefore, the performance of the first iteration would be different to the remaining iterations. This causes unsuitability in performance reports. To fix this issue, we created the V2 version, in which, a new conjunction string is created for every individual iteration.
- Loading branch information
1 parent
15a82c9
commit 727a0aa
Showing
7 changed files
with
13 additions
and
13 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
2 changes: 1 addition & 1 deletion
2
...marks/bm_sqlglot/bm_sqlglot_optimize.toml → ...bm_sqlglot_v2/bm_sqlglot_v2_optimize.toml
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[tool.pyperformance] | ||
name = "sqlglot_optimize" | ||
name = "sqlglot_v2_optimize" | ||
extra_opts = ["optimize"] |
2 changes: 1 addition & 1 deletion
2
...nchmarks/bm_sqlglot/bm_sqlglot_parse.toml → ...ks/bm_sqlglot_v2/bm_sqlglot_v2_parse.toml
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[tool.pyperformance] | ||
name = "sqlglot_parse" | ||
name = "sqlglot_v2_parse" | ||
extra_opts = ["parse"] |
2 changes: 1 addition & 1 deletion
2
...arks/bm_sqlglot/bm_sqlglot_transpile.toml → ...m_sqlglot_v2/bm_sqlglot_v2_transpile.toml
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[tool.pyperformance] | ||
name = "sqlglot_transpile" | ||
name = "sqlglot_v2_transpile" | ||
extra_opts = ["transpile"] |
6 changes: 3 additions & 3 deletions
6
...iles/benchmarks/bm_sqlglot/pyproject.toml → ...s/benchmarks/bm_sqlglot_v2/pyproject.toml
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
[project] | ||
name = "pyperformance_bm_sqlglot" | ||
name = "pyperformance_bm_sqlglot_v2" | ||
requires-python = ">=3.7" | ||
dependencies = [ | ||
"pyperf", | ||
"sqlglot", | ||
"sqlglot_v2", | ||
] | ||
urls = {repository = "https://github.com/python/pyperformance"} | ||
dynamic = ["version"] | ||
|
||
[tool.pyperformance] | ||
name = "sqlglot" | ||
name = "sqlglot_v2" | ||
extra_opts = ["normalize"] |
File renamed without changes.
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