-
Notifications
You must be signed in to change notification settings - Fork 4.1k
sql: 23.1 microbenchmark regression investigation and sign-off #98306
Copy link
Copy link
Closed
Labels
C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)GA-blockerT-sql-queriesSQL Queries TeamSQL Queries Teambranch-release-23.1Used to mark GA and release blockers, technical advisories, and bugs for 23.1Used to mark GA and release blockers, technical advisories, and bugs for 23.1
Description
This issue tracks SQL Queries -related benchmark regressions. The main issue tracking all benchmark regressions is #96960.
The pkg/sql sheet is here: https://docs.google.com/spreadsheets/d/1uDYotBARIqdL5nSquMoF7Fy3qqoMfNigwHAcB8NPR7M/edit?pli=1#gid=7
Here's a list of the major regressions we need to investigate:
time/op regressions (up to 20%)
-
Phases/many-columns-and-indexes-c/- 500+% slower
- @mgartner: I've bisected this to 7f8a334. Prior to this commit join ordering was disabled in these benchmarks. I'm going to backport this change to
release-22.2and re-compare all optimizer benchmarks. - Fixed by release-22.2: opt: set default session settings and cache histograms in benchmarks #98309
-
Chain/chain- Up to 490% slower
- @mgartner: This is likely also due to 7f8a334.
- Fixed by release-22.2: opt: set default session settings and cache histograms in benchmarks #98309
-
Encodings/(1::varchar(4) COLLATED "en_US", null,Encodings/(1::char(1) COLLATED "en_US", null,Encodings/(1::text(4) COLLATED "en_US", null,Encodings/(1::char(2) COLLATED "en_US", null- Up to 182% slower
- @mgartner: I've bisected to tree: fix panic when encoding tuple #95009.
- This is likely a non-issue - it's regressed from 50ns to 120ns.
- Will be fixed by tree: fix tuple encoding performance regression #98717.
-
KV/Delete/SQL- Up to 496% slower
- @DrewKimball: Expected due to benchmark change in kv: insert rows during preparation for BenchmarkKV/Delete #90563
-
KV/Delete/Native- ~50% slower
- @DrewKimball: Expected due to benchmark change in kv: insert rows during preparation for BenchmarkKV/Delete #90563
-
KV/Insert/Native -
ProjOp/projGTInt64Int64/useSel=false/hasNulls=false-8- 132% slower
- @yuzefovich unreliable benchmark, not worth looking into
-
IsDatumEqual- 112% slower
- @mgartner: I've bisected to colinfo: add missing type families into CanHaveCompositeKeyEncoding #95839.
- This benchmark only changed with the introduction of TSQuery and TSVector encoding. I don't think we should be concerned about this regression.
-
EncodeDatum-8- 67% slwoer
-
SelLTInt64Int64Op/useSel=false,hasNulls=false-8- 60% slower
- @yuzefovich unreliable benchmark, not worth looking into
-
ConcurrentSelect1/concurrentConn- Up to 50% slower
-
NumberedContainerIteratorCaching/lookup-join,NumberedContainerIteratorCaching/inverted-join- Up to 40% slower
-
CrossJoiner/spillForced=false/type=INNER/rows=8192-8- 30% slower
-
HashAggregatorPartialOrder/ANY_NOT_NULL/hash-partial-order- 30% slower
-
Distinct/PartiallyOrdered/hasNulls=true/newTupleProbability=0.001/rows=4096/ordCols=1/type=bytes-8- 27% slower
- @yuzefovich not used in production
-
SortTopK/rows=16384/cols=2/matchLen=1/avgChunkSize=128-8- 22% slower
-
ValuesProcessor/rows=16,cols=1-8- 20% slower
-
Phases/tpcc-stock-level/Prepared
alloc/op regressions
TODO
allocs/op regressions
TODO
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)GA-blockerT-sql-queriesSQL Queries TeamSQL Queries Teambranch-release-23.1Used to mark GA and release blockers, technical advisories, and bugs for 23.1Used to mark GA and release blockers, technical advisories, and bugs for 23.1
Type
Projects
Status
Done