-
Notifications
You must be signed in to change notification settings - Fork 5.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
expression: implement arithmetic vec int divide int sig #14464
expression: implement arithmetic vec int divide int sig #14464
Conversation
Thanks for your contribution. If your PR get merged, you will be rewarded 50 points. |
bfff894
to
b2b6071
Compare
b2b6071
to
f72088c
Compare
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 for your contribution, LGTM.
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.
LGTM
/run-all-tests |
/run-all-tests |
@ZiheLiu merge failed. |
It panicked, and here is the stack:
@ZiheLiu Please fix this problem at your convenience. |
…icIntDivideIntSig
…icIntDivideIntSig
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.
LGTM
/merge |
/run-all-tests |
PCP #12103
What problem does this PR solve?
implement builtinArithmeticIntDivideIntSig vectorized function
#12103
What is changed and how it works?
about 3 times faster
$ go test -v -benchmem -bench=BenchmarkVectorizedBuiltinArithmeticFunc -run=BenchmarkVectorizedBuiltinArithmeticFunc -args builtinArithmeticIntDivideIntSig goos: darwin goarch: amd64 pkg: github.com/pingcap/tidb/expression BenchmarkVectorizedBuiltinArithmeticFunc/builtinArithmeticIntDivideIntSig-VecBuiltinFunc-8 64203 18457 ns/op 0 B/op 0 allocs/op BenchmarkVectorizedBuiltinArithmeticFunc/builtinArithmeticIntDivideIntSig-NonVecBuiltinFunc-8 25732 46684 ns/op 0 B/op 0 allocs/op BenchmarkVectorizedBuiltinArithmeticFunc/builtinArithmeticIntDivideIntSig-VecBuiltinFunc#01-8 106828 11296 ns/op 0 B/op 0 allocs/op BenchmarkVectorizedBuiltinArithmeticFunc/builtinArithmeticIntDivideIntSig-NonVecBuiltinFunc#01-8 28982 40606 ns/op 0 B/op 0 allocs/op BenchmarkVectorizedBuiltinArithmeticFunc/builtinArithmeticIntDivideIntSig-VecBuiltinFunc#02-8 78523 15427 ns/op 0 B/op 0 allocs/op BenchmarkVectorizedBuiltinArithmeticFunc/builtinArithmeticIntDivideIntSig-NonVecBuiltinFunc#02-8 26662 44313 ns/op 0 B/op 0 allocs/op BenchmarkVectorizedBuiltinArithmeticFunc/builtinArithmeticIntDivideIntSig-VecBuiltinFunc#03-8 78825 15292 ns/op 0 B/op 0 allocs/op BenchmarkVectorizedBuiltinArithmeticFunc/builtinArithmeticIntDivideIntSig-NonVecBuiltinFunc#03-8 27369 44987 ns/op 0 B/op 0 allocs/op PASS ok github.com/pingcap/tidb/expression 12.083s
Check List
Tests