Rachelint commented on PR #11825: URL: https://github.com/apache/datafusion/pull/11825#issuecomment-2328457120
Hi, I am curious about the slower cases, I merge and run some benchmarks in my local , found some faster and no cases slower... ``` $ bash bench.sh compare main test-quick-filter Comparing main and test-quick-filter -------------------- Benchmark clickbench_1.json -------------------- ┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓ ┃ Query ┃ main ┃ test-quick-filter ┃ Change ┃ ┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩ │ QQuery 0 │ 0.73ms │ 0.71ms │ no change │ │ QQuery 1 │ 72.31ms │ 71.48ms │ no change │ │ QQuery 2 │ 174.84ms │ 168.18ms │ no change │ │ QQuery 3 │ 185.37ms │ 186.78ms │ no change │ │ QQuery 4 │ 1639.67ms │ 1648.56ms │ no change │ │ QQuery 5 │ 1590.07ms │ 1598.66ms │ no change │ │ QQuery 6 │ 60.32ms │ 60.65ms │ no change │ │ QQuery 7 │ 73.17ms │ 73.85ms │ no change │ │ QQuery 8 │ 2383.66ms │ 2356.76ms │ no change │ │ QQuery 9 │ 1978.38ms │ 1953.21ms │ no change │ │ QQuery 10 │ 578.05ms │ 576.20ms │ no change │ │ QQuery 11 │ 627.86ms │ 637.43ms │ no change │ │ QQuery 12 │ 1768.46ms │ 1774.71ms │ no change │ │ QQuery 13 │ 3423.99ms │ 3383.07ms │ no change │ │ QQuery 14 │ 2601.64ms │ 2567.29ms │ no change │ │ QQuery 15 │ 1834.62ms │ 1814.21ms │ no change │ │ QQuery 16 │ 4997.42ms │ 4989.63ms │ no change │ │ QQuery 17 │ 4877.33ms │ 4933.17ms │ no change │ │ QQuery 18 │ 10282.15ms │ 10473.54ms │ no change │ │ QQuery 19 │ 152.76ms │ 157.92ms │ no change │ │ QQuery 20 │ 3375.83ms │ 3347.01ms │ no change │ │ QQuery 21 │ 3952.43ms │ 3949.74ms │ no change │ │ QQuery 22 │ 9192.80ms │ 9144.10ms │ no change │ │ QQuery 23 │ 23504.90ms │ 23605.83ms │ no change │ │ QQuery 24 │ 1142.61ms │ 1156.32ms │ no change │ │ QQuery 25 │ 1033.47ms │ 1018.34ms │ no change │ │ QQuery 26 │ 1348.93ms │ 1352.45ms │ no change │ │ QQuery 27 │ 4839.62ms │ 4806.33ms │ no change │ │ QQuery 28 │ 24268.67ms │ 24279.39ms │ no change │ │ QQuery 29 │ 928.99ms │ 944.59ms │ no change │ │ QQuery 30 │ 2078.71ms │ 2091.26ms │ no change │ │ QQuery 31 │ 2318.33ms │ 2302.82ms │ no change │ │ QQuery 32 │ 8414.80ms │ 8531.02ms │ no change │ │ QQuery 33 │ 9722.33ms │ 9652.60ms │ no change │ │ QQuery 34 │ 9647.72ms │ 9660.34ms │ no change │ │ QQuery 35 │ 3126.94ms │ 3126.48ms │ no change │ │ QQuery 36 │ 263.11ms │ 266.64ms │ no change │ │ QQuery 37 │ 168.94ms │ 160.47ms │ +1.05x faster │ │ QQuery 38 │ 156.60ms │ 157.66ms │ no change │ │ QQuery 39 │ 856.27ms │ 822.14ms │ no change │ │ QQuery 40 │ 66.63ms │ 63.19ms │ +1.05x faster │ │ QQuery 41 │ 59.91ms │ 59.41ms │ no change │ │ QQuery 42 │ 74.34ms │ 70.33ms │ +1.06x faster │ └──────────────┴────────────┴───────────────────┴───────────────┘ ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┓ ┃ Benchmark Summary ┃ ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━┩ │ Total Time (main) │ 149845.75ms │ │ Total Time (test-quick-filter) │ 149994.46ms │ │ Average Time (main) │ 3484.78ms │ │ Average Time (test-quick-filter) │ 3488.24ms │ │ Queries Faster │ 3 │ │ Queries Slower │ 0 │ │ Queries with No Change │ 40 │ └──────────────────────────────────┴─────────────┘ -------------------- Benchmark tpch_mem_sf1.json -------------------- ┏━━━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓ ┃ Query ┃ main ┃ test-quick-filter ┃ Change ┃ ┡━━━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩ │ QQuery 1 │ 212.12ms │ 206.97ms │ no change │ │ QQuery 2 │ 56.70ms │ 31.73ms │ +1.79x faster │ │ QQuery 3 │ 83.48ms │ 86.23ms │ no change │ │ QQuery 4 │ 60.25ms │ 59.16ms │ no change │ │ QQuery 5 │ 124.24ms │ 122.70ms │ no change │ │ QQuery 6 │ 13.19ms │ 13.22ms │ no change │ │ QQuery 7 │ 254.12ms │ 254.83ms │ no change │ │ QQuery 8 │ 26.44ms │ 26.76ms │ no change │ │ QQuery 9 │ 118.50ms │ 118.72ms │ no change │ │ QQuery 10 │ 118.42ms │ 119.48ms │ no change │ │ QQuery 11 │ 61.76ms │ 61.81ms │ no change │ │ QQuery 12 │ 35.91ms │ 36.83ms │ no change │ │ QQuery 13 │ 80.13ms │ 78.57ms │ no change │ │ QQuery 14 │ 15.78ms │ 15.80ms │ no change │ │ QQuery 15 │ 25.39ms │ 25.15ms │ no change │ │ QQuery 16 │ 37.77ms │ 36.74ms │ no change │ │ QQuery 17 │ 171.96ms │ 171.32ms │ no change │ │ QQuery 18 │ 488.41ms │ 490.60ms │ no change │ │ QQuery 19 │ 38.33ms │ 38.22ms │ no change │ │ QQuery 20 │ 81.39ms │ 80.92ms │ no change │ │ QQuery 21 │ 285.25ms │ 283.90ms │ no change │ │ QQuery 22 │ 19.12ms │ 19.53ms │ no change │ └──────────────┴──────────┴───────────────────┴───────────────┘ ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓ ┃ Benchmark Summary ┃ ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩ │ Total Time (main) │ 2408.66ms │ │ Total Time (test-quick-filter) │ 2379.18ms │ │ Average Time (main) │ 109.48ms │ │ Average Time (test-quick-filter) │ 108.14ms │ │ Queries Faster │ 1 │ │ Queries Slower │ 0 │ │ Queries with No Change │ 21 │ └──────────────────────────────────┴───────────┘ -------------------- Benchmark tpch_sf1.json -------------------- ┏━━━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓ ┃ Query ┃ main ┃ test-quick-filter ┃ Change ┃ ┡━━━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩ │ QQuery 1 │ 287.93ms │ 292.32ms │ no change │ │ QQuery 2 │ 48.35ms │ 46.77ms │ no change │ │ QQuery 3 │ 114.12ms │ 111.82ms │ no change │ │ QQuery 4 │ 62.36ms │ 59.06ms │ +1.06x faster │ │ QQuery 5 │ 193.38ms │ 193.28ms │ no change │ │ QQuery 6 │ 56.30ms │ 56.94ms │ no change │ │ QQuery 7 │ 302.42ms │ 305.13ms │ no change │ │ QQuery 8 │ 128.34ms │ 123.74ms │ no change │ │ QQuery 9 │ 229.54ms │ 229.28ms │ no change │ │ QQuery 10 │ 199.19ms │ 201.12ms │ no change │ │ QQuery 11 │ 32.95ms │ 32.56ms │ no change │ │ QQuery 12 │ 87.90ms │ 84.09ms │ no change │ │ QQuery 13 │ 127.00ms │ 128.93ms │ no change │ │ QQuery 14 │ 79.24ms │ 77.91ms │ no change │ │ QQuery 15 │ 109.18ms │ 110.44ms │ no change │ │ QQuery 16 │ 42.99ms │ 41.24ms │ no change │ │ QQuery 17 │ 272.09ms │ 276.05ms │ no change │ │ QQuery 18 │ 451.79ms │ 449.93ms │ no change │ │ QQuery 19 │ 146.37ms │ 139.91ms │ no change │ │ QQuery 20 │ 133.57ms │ 133.79ms │ no change │ │ QQuery 21 │ 297.75ms │ 299.75ms │ no change │ │ QQuery 22 │ 28.28ms │ 28.65ms │ no change │ └──────────────┴──────────┴───────────────────┴───────────────┘ ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓ ┃ Benchmark Summary ┃ ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩ │ Total Time (main) │ 3431.02ms │ │ Total Time (test-quick-filter) │ 3422.71ms │ │ Average Time (main) │ 155.96ms │ │ Average Time (test-quick-filter) │ 155.58ms │ │ Queries Faster │ 1 │ │ Queries Slower │ 0 │ │ Queries with No Change │ 21 │ └──────────────────────────────────┴───────────┘ ``` -- 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: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org