-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
opt/opbench: add more cost tests #36390
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool graph. I wonder what metric would help bring them more in-line. Maybe avg value size for each column.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @RaduBerinde and @rytaft)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 4 of 4 files at r1.
Reviewable status: complete! 2 of 0 LGTMs obtained (waiting on @justinj)
pkg/sql/opt/opbench/opbench_test.go, line 552 at r1 (raw file):
(Table "%s") (Cols "$cols") (HardLimit $rows)
[nit] this isn't lined up
pkg/sql/opt/opbench/opbench_test.go, line 583 at r1 (raw file):
}, } }
Seems like there's a lot of common code between makeScanSpec
and makeSortSpec
-- could some of it be put into a helper function?
pkg/sql/opt/opbench/opbench_test.go, line 585 at r1 (raw file):
} // SortLineitemSpec scans the lineitem table.
scans -> scans and sorts
This commit introduces more costing tests for some scans and sorts. Release note: None
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I think avg value size would help, but I think there's an easier win which is tweaking the cost of a single column, since there's a moderately high fixed cost to that. I want to lay down some foundation for talking about the accuracy here before making real changes.
bors r+
Reviewable status: complete! 0 of 0 LGTMs obtained (and 2 stale) (waiting on @rytaft)
pkg/sql/opt/opbench/opbench_test.go, line 552 at r1 (raw file):
Previously, rytaft wrote…
[nit] this isn't lined up
Done.
pkg/sql/opt/opbench/opbench_test.go, line 583 at r1 (raw file):
Previously, rytaft wrote…
Seems like there's a lot of common code between
makeScanSpec
andmakeSortSpec
-- could some of it be put into a helper function?
Pulled out the part that builds the list of columns.
pkg/sql/opt/opbench/opbench_test.go, line 585 at r1 (raw file):
Previously, rytaft wrote…
scans -> scans and sorts
Done.
36390: opt/opbench: add more cost tests r=justinj a=justinj This commit introduces more costing tests for some scans and sorts. The plots some some room for improvement on the costing: ![image](https://user-images.githubusercontent.com/409075/55353842-428ce880-5492-11e9-8c11-f85de0c5ca11.png) Release note: None Co-authored-by: Justin Jaffray <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r2.
Reviewable status: complete! 0 of 0 LGTMs obtained (and 2 stale)
Build succeeded |
This commit introduces more costing tests for some scans and sorts.
The plots some some room for improvement on the costing:
Release note: None