xuzifu666 commented on PR #55982:
URL: https://github.com/apache/spark/pull/55982#issuecomment-4505210054
> Is there a microbenchmark that demonstrates the perf benefit?
@yaooqinn I had added a benchmark test and the improment as follow:
Benchmark Test Results
```
┌───────────────────────┬────────────────────────────┬─────────────────────────────┬───────────────┐
│ Metric │ Unoptimized Plan │ Optimized
Plan │ Improvement │
├───────────────────────┼────────────────────────────┼─────────────────────────────┼───────────────┤
│ Iterations │ 1,000 │ 1,000
│ - │
├───────────────────────┼────────────────────────────┼─────────────────────────────┼───────────────┤
│ Test Case │ rand(5) * 3 < 3 (analyzed) │ rand(5) * 3 < 3
(optimized) │ - │
├───────────────────────┼────────────────────────────┼─────────────────────────────┼───────────────┤
│ Planning Time (Run 1) │ 1,362 ms │ 364 ms
│ 73% faster │
├───────────────────────┼────────────────────────────┼─────────────────────────────┼───────────────┤
│ Planning Time (Run 2) │ 1,249 ms │ 550 ms
│ 55% faster │
├───────────────────────┼────────────────────────────┼─────────────────────────────┼───────────────┤
│ Planning Time (Run 3) │ 1,200-1,400 ms │ 300-500 ms
│ 50-73% faster │
├───────────────────────┼────────────────────────────┼─────────────────────────────┼───────────────┤
│ Average Improvement │ - │ -
│ ~60% │
└───────────────────────┴────────────────────────────┴─────────────────────────────┴───────────────┘
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]