run_id | query_text | before_ms | after_ms | speedup --------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+--------------+--------------+--------- 252 | select count(*) from generate_series(1::numeric, 500000) g | 37.599000 | 40.448000 | 0.93 253 | select count(*) from generate_series(1::numeric, 500000, 2.5) g | 14.060000 | 14.866000 | 0.95 237 | select sum(exp(mod(amount, 5))) from (select amount from t_small limit 100000) s | 139.626000 | 146.279000 | 0.95 174 | select count(*) from t_small where amount + amount > 2000 | 86.586000 | 89.791000 | 0.96 235 | select sum(exp(mod(amount, 5))) from (select amount from t limit 100000) s | 145.480000 | 151.363000 | 0.96 236 | select sum(exp(mod(amount, 5))) from (select amount from t_big limit 100000) s | 133.219000 | 137.432000 | 0.97 172 | select count(*) from t_small where amount * 2 > 1000 | 77.756000 | 79.962000 | 0.97 38 | select count(*) from t where amount * 2 > 100000 | 77.789000 | 79.800000 | 0.97 188 | select count(*) from t_small where sign(amount) > 0 | 58.116000 | 59.143000 | 0.98 105 | select count(*) from t_big where amount * 2 > 100000 | 80.330000 | 81.663000 | 0.98 107 | select count(*) from t_big where amount + amount > 200000 | 90.512000 | 92.143000 | 0.98 40 | select count(*) from t where amount + amount > 200000 | 88.050000 | 89.604000 | 0.98 121 | select count(*) from t_big where sign(amount) > 0 | 56.049000 | 57.187000 | 0.98 330 | select sum(exp(mod(abs(amount), 5))) from t_special_mixed | 409.967000 | 419.949000 | 0.98 231 | select sum(ln(abs(amount) + 1)) from (select amount from t_big limit 50000) s | 97.996000 | 99.193000 | 0.99 50 | select sum(floor(amount)) from t | 70.697000 | 71.240000 | 0.99 289 | select count(*) from t_special where sign(amount) > 0 | 51.656000 | 52.320000 | 0.99 317 | select sum(amount / 3) from t_special_mixed | 59.075000 | 59.783000 | 0.99 193 | select count(*) from t_small where amount % 1000 < 100 | 97.814000 | 98.425000 | 0.99 230 | select sum(ln(abs(amount) + 1)) from (select amount from t limit 50000) s | 96.545000 | 97.175000 | 0.99 192 | select count(*) from t_small where mod(amount, 10) = 0 | 95.611000 | 96.247000 | 0.99 331 | select sum(min_scale(amount)) from t_special_mixed | 41.776000 | 42.012000 | 0.99 329 | select sum(ln(abs(amount) + 1)) from t_special_mixed | 507.712000 | 512.869000 | 0.99 248 | select sum(amount::float8) from t_big | 124.907000 | 126.171000 | 0.99 250 | select sum((amount % 1000)::float4::numeric) from t | 494.194000 | 499.151000 | 0.99 251 | select sum((id % 1000000)::numeric) from t | 51.769000 | 52.218000 | 0.99 117 | select sum(floor(amount)) from t_big | 73.185000 | 73.805000 | 0.99 110 | select sum(abs(amount)) from t_big | 50.792000 | 51.406000 | 0.99 352 | COPY t_copy_txt(amount) FROM '/tmp/numeric_bench.txt' | 145.680000 | 145.585000 | 1.00 175 | select sum((amount + 10) * 0.95) from t_small | 103.877000 | 103.544000 | 1.00 187 | select sum(sign(amount)) from t_small | 52.715000 | 52.743000 | 1.00 179 | select count(*) from t_small where abs(amount - 500) < 100 | 76.052000 | 76.165000 | 1.00 182 | select sum(trunc(amount, 0)) from t_small | 65.944000 | 65.897000 | 1.00 111 | select sum(abs(amount - 50000)) from t_big | 87.000000 | 86.933000 | 1.00 281 | select sum(amount * 2) from t_special | 45.539000 | 45.367000 | 1.00 283 | select sum(amount % 10) from t_special | 49.469000 | 49.233000 | 1.00 183 | select sum(trunc(amount, 1)) from t_small | 67.201000 | 66.944000 | 1.00 184 | select sum(floor(amount)) from t_small | 73.107000 | 73.344000 | 1.00 58 | select count(*) from t where mod(amount, 10) = 0 | 99.367000 | 99.123000 | 1.00 320 | select sum(amount * amount) from t_special_mixed | 58.814000 | 58.872000 | 1.00 233 | select sum(log(abs(amount) + 1)) from (select amount from t limit 15000) s | 107.540000 | 107.910000 | 1.00 234 | select sum(log(2, abs(amount) + 1)) from (select amount from t limit 15000) s | 98.921000 | 98.715000 | 1.00 232 | select sum(ln(abs(amount) + 1)) from (select amount from t_small limit 50000) s | 91.808000 | 92.143000 | 1.00 99 | select count(*) from t_big where amount + 100 > amount * 1.1 | 114.005000 | 114.282000 | 1.00 195 | select sum(round(abs(amount - 500), 2)) from t_small | 103.838000 | 103.623000 | 1.00 335 | select sum(div(amount, 7)) from t_special_mixed | 51.911000 | 51.951000 | 1.00 214 | select sum(-amount) from t | 48.539000 | 48.456000 | 1.00 279 | select sum(amount + 100) from t_special | 44.226000 | 44.355000 | 1.00 354 | select count(*) from (select distinct amount from t_big) s | 244.026000 | 242.186000 | 1.01 216 | select sum(-amount) from t_big | 51.168000 | 50.622000 | 1.01 351 | COPY t_copy_bin(amount) FROM '/tmp/numeric_bench.bin' WITH (FORMAT binary) | 109.941000 | 109.241000 | 1.01 336 | select sum(mod(amount, 100)) from t_special_mixed | 61.999000 | 61.219000 | 1.01 334 | select sum(amount::float8) from t_special_mixed | 58.739000 | 58.304000 | 1.01 333 | select sum(gcd(mod(abs(amount), 1000), 30)) from t_special_mixed | 162.098000 | 161.166000 | 1.01 32 | select count(*) from t where amount + 100 > amount * 1.1 | 111.163000 | 109.888000 | 1.01 47 | select sum(round(amount, 1)) from t | 75.002000 | 73.999000 | 1.01 53 | select sum(sign(amount)) from t | 51.457000 | 50.951000 | 1.01 59 | select count(*) from t where amount % 1000 < 100 | 103.943000 | 103.248000 | 1.01 61 | select sum(round(abs(amount - 50000), 2)) from t | 105.571000 | 104.101000 | 1.01 62 | select sum(floor(amount / 100) * 100) from t | 145.087000 | 143.164000 | 1.01 63 | select sum(ceil(amount / 100) * 100) from t | 162.101000 | 159.924000 | 1.01 322 | select sum(abs(amount)) from t_special_mixed | 48.240000 | 47.863000 | 1.01 297 | select sum(amount::float8) from t_special | 37.600000 | 37.182000 | 1.01 287 | select sum(abs(amount)) from t_special | 48.211000 | 47.569000 | 1.01 285 | select sum(amount * amount) from t_special | 51.421000 | 50.721000 | 1.01 282 | select sum(amount / 3) from t_special | 45.259000 | 44.766000 | 1.01 280 | select sum(amount - 50) from t_special | 45.001000 | 44.488000 | 1.01 100 | select sum(amount + 100) from t_big | 81.170000 | 80.214000 | 1.01 102 | select sum(amount * 2) from t_big | 75.963000 | 74.861000 | 1.01 109 | select sum(amount * 1.08 - amount * 0.03) from t_big | 152.453000 | 150.228000 | 1.01 112 | select count(*) from t_big where abs(amount - 50000) < 10000 | 80.086000 | 79.633000 | 1.01 113 | select sum(round(amount, 0)) from t_big | 72.275000 | 71.456000 | 1.01 115 | select sum(trunc(amount, 0)) from t_big | 65.725000 | 65.024000 | 1.01 116 | select sum(trunc(amount, 1)) from t_big | 68.778000 | 68.403000 | 1.01 123 | select sum(sqrt(abs(amount))) from t_big | 131.460000 | 130.170000 | 1.01 127 | select count(*), width_bucket(amount, 0, 100000, 10) from t_big group by width_bucket(amount, 0, 100000, 10) | 131.290000 | 130.572000 | 1.01 129 | select sum(floor(amount / 100) * 100) from t_big | 155.446000 | 153.855000 | 1.01 130 | select sum(ceil(amount / 100) * 100) from t_big | 178.007000 | 175.837000 | 1.01 249 | select sum((amount % 1000)::float4) from t | 173.224000 | 170.751000 | 1.01 246 | select sum((amount % 100)::int2::numeric) from t_small | 135.723000 | 134.955000 | 1.01 244 | select sum(amount::int4) from t_small | 56.474000 | 55.805000 | 1.01 242 | select sum(scale(amount)) from t_small | 39.510000 | 39.142000 | 1.01 166 | select count(*) from t_small where amount + 10 > amount * 1.1 | 111.598000 | 110.400000 | 1.01 167 | select sum(amount + 10) from t_small | 76.563000 | 75.874000 | 1.01 168 | select sum(amount - 5) from t_small | 76.704000 | 76.168000 | 1.01 169 | select sum(amount * 2) from t_small | 73.311000 | 72.533000 | 1.01 180 | select sum(round(amount, 0)) from t_small | 71.073000 | 70.342000 | 1.01 186 | select sum(ceiling(amount)) from t_small | 90.961000 | 90.350000 | 1.01 189 | select sum(power(amount, 2)) from t_small | 121.380000 | 120.744000 | 1.01 194 | select count(*), width_bucket(amount, 0, 1000, 10) from t_small group by width_bucket(amount, 0, 1000, 10) | 125.448000 | 124.457000 | 1.01 196 | select sum(floor(amount / 100) * 100) from t_small | 144.257000 | 143.081000 | 1.01 197 | select sum(ceil(amount / 100) * 100) from t_small | 162.301000 | 161.318000 | 1.01 226 | select sum(lcm(mod(amount, 100), 12)) from t_small | 410.206000 | 405.532000 | 1.01 224 | select sum(lcm(mod(amount, 100), 12)) from t | 443.113000 | 436.570000 | 1.01 346 | select sum(((id % 1000) + 0.5)::text::numeric) from t_big | 155.063000 | 152.505000 | 1.02 108 | select sum((amount + 100) * 0.95) from t_big | 112.393000 | 110.362000 | 1.02 347 | select sum(((id % 1000) + 0.5)::text::numeric) from t_small | 155.419000 | 152.375000 | 1.02 238 | select sum(scale(amount)) from t | 37.819000 | 37.115000 | 1.02 345 | select sum(((id % 1000) + 0.5)::text::numeric) from t | 156.174000 | 152.506000 | 1.02 45 | select count(*) from t where abs(amount - 50000) < 10000 | 76.819000 | 75.218000 | 1.02 340 | select count(*) from (select sum(amount) over w, avg(amount) over w from t_small window w as (order by id rows between 1000 preceding and current row)) s | 35.758000 | 34.926000 | 1.02 341 | select count(*) from (select variance(amount) over w from t window w as (order by id rows between 1000 preceding and current row)) s | 34.055000 | 33.365000 | 1.02 173 | select count(*) from t_small where amount / 10 > 50 | 94.165000 | 92.459000 | 1.02 344 | select sum(length(amount::text)) from t_small | 83.738000 | 82.482000 | 1.02 60 | select count(*), width_bucket(amount, 0, 100000, 10) from t group by width_bucket(amount, 0, 100000, 10) | 132.046000 | 129.048000 | 1.02 343 | select sum(length(amount::text)) from t_big | 117.264000 | 115.131000 | 1.02 171 | select sum(amount % 10) from t_small | 104.015000 | 101.769000 | 1.02 223 | select sum(gcd(mod(amount, 100), 30)) from t_small | 417.236000 | 408.890000 | 1.02 222 | select sum(gcd(mod(amount, 1000), 30)) from t_big | 429.010000 | 422.333000 | 1.02 44 | select sum(abs(amount - 50000)) from t | 84.070000 | 82.732000 | 1.02 170 | select sum(amount / 3) from t_small | 96.027000 | 93.914000 | 1.02 52 | select sum(ceiling(amount)) from t | 92.596000 | 90.473000 | 1.02 185 | select sum(ceil(amount)) from t_small | 91.559000 | 90.199000 | 1.02 114 | select sum(round(amount, 1)) from t_big | 75.044000 | 73.284000 | 1.02 221 | select sum(gcd(mod(amount, 1000), 30)) from t | 460.431000 | 451.101000 | 1.02 54 | select count(*) from t where sign(amount) > 0 | 57.094000 | 56.249000 | 1.02 43 | select sum(abs(amount)) from t | 48.961000 | 47.975000 | 1.02 176 | select sum(amount * 1.08 - amount * 0.03) from t_small | 141.423000 | 138.162000 | 1.02 178 | select sum(abs(amount - 500)) from t_small | 83.225000 | 81.777000 | 1.02 120 | select sum(sign(amount)) from t_big | 52.367000 | 51.491000 | 1.02 42 | select sum(amount * 1.08 - amount * 0.03) from t | 144.772000 | 142.259000 | 1.02 122 | select sum(power(amount, 2)) from t_big | 145.754000 | 142.462000 | 1.02 314 | select sum(amount + 100) from t_special_mixed | 52.876000 | 51.651000 | 1.02 49 | select sum(trunc(amount, 1)) from t | 67.559000 | 66.010000 | 1.02 125 | select count(*) from t_big where mod(amount, 10) = 0 | 113.723000 | 111.645000 | 1.02 181 | select sum(round(amount, 1)) from t_small | 74.546000 | 73.245000 | 1.02 225 | select sum(lcm(mod(amount, 100), 12)) from t_big | 423.862000 | 417.312000 | 1.02 128 | select sum(round(abs(amount - 50000), 2)) from t_big | 111.098000 | 109.133000 | 1.02 190 | select sum(sqrt(abs(amount))) from t_small | 134.520000 | 131.599000 | 1.02 191 | select sum(mod(amount, 100)) from t_small | 102.626000 | 100.518000 | 1.02 41 | select sum((amount + 100) * 0.95) from t | 106.022000 | 104.320000 | 1.02 277 | select count(*) from t_special where amount = amount | 34.614000 | 34.089000 | 1.02 254 | select count(*) from (select sum(amount) over (order by amount range between 10 preceding and 10 following) from t_small) s | 36.940000 | 36.100000 | 1.02 39 | select count(*) from t where amount / 10 > 5000 | 90.635000 | 88.916000 | 1.02 37 | select sum(amount % 10) from t | 106.703000 | 104.584000 | 1.02 36 | select sum(amount / 3) from t | 95.892000 | 93.736000 | 1.02 315 | select sum(amount - 50) from t_special_mixed | 52.775000 | 51.835000 | 1.02 55 | select sum(power(amount, 2)) from t | 140.252000 | 137.256000 | 1.02 35 | select sum(amount * 2) from t | 74.234000 | 72.454000 | 1.02 213 | select order_date, stddev(amount), var_samp(amount), var_pop(amount) from t group by order_date | 125.345000 | 122.737000 | 1.02 318 | select sum(amount % 10) from t_special_mixed | 62.229000 | 61.125000 | 1.02 101 | select sum(amount - 50) from t_big | 81.446000 | 79.594000 | 1.02 286 | select sum(-amount) from t_special | 44.113000 | 43.073000 | 1.02 103 | select sum(amount / 3) from t_big | 98.547000 | 96.912000 | 1.02 217 | select sum(-amount) from t_small | 51.335000 | 50.407000 | 1.02 104 | select sum(amount % 10) from t_big | 119.271000 | 116.524000 | 1.02 51 | select sum(ceil(amount)) from t | 92.169000 | 90.321000 | 1.02 106 | select count(*) from t_big where amount / 10 > 5000 | 105.738000 | 103.346000 | 1.02 319 | select sum(amount + amount) from t_special_mixed | 58.916000 | 57.862000 | 1.02 46 | select sum(round(amount, 0)) from t | 71.636000 | 70.404000 | 1.02 240 | select sum(scale(trim_scale(amount))) from t | 53.039000 | 52.013000 | 1.02 56 | select sum(sqrt(abs(amount))) from t | 129.596000 | 127.376000 | 1.02 349 | COPY (SELECT amount FROM t_big) TO '/dev/null' WITH (FORMAT binary) | 87.366000 | 84.945000 | 1.03 48 | select sum(trunc(amount, 0)) from t | 65.158000 | 63.196000 | 1.03 350 | COPY (SELECT amount FROM t_small) TO '/dev/null' WITH (FORMAT binary) | 82.870000 | 80.352000 | 1.03 119 | select sum(ceiling(amount)) from t_big | 96.703000 | 93.774000 | 1.03 124 | select sum(mod(amount, 100)) from t_big | 120.235000 | 116.488000 | 1.03 126 | select count(*) from t_big where amount % 1000 < 100 | 117.068000 | 113.996000 | 1.03 142 | select order_date, min(amount) from t_small where order_date > '2025-01-01' group by order_date | 60.345000 | 58.474000 | 1.03 34 | select sum(amount - 50) from t | 78.923000 | 76.593000 | 1.03 247 | select sum(amount::float8) from t | 124.812000 | 121.069000 | 1.03 245 | select sum((amount % 100)::int2) from t_small | 115.447000 | 112.338000 | 1.03 220 | select sum(div(amount, 7)) from t_small | 73.200000 | 70.957000 | 1.03 243 | select sum(amount::int8) from t | 57.304000 | 55.482000 | 1.03 241 | select sum(min_scale(amount)) from t_big | 41.962000 | 40.580000 | 1.03 154 | select order_date, variance(amount) from t_small where order_date > '2025-01-01' group by order_date | 71.316000 | 69.366000 | 1.03 239 | select sum(min_scale(amount)) from t | 41.946000 | 40.722000 | 1.03 339 | select count(*) from (select sum(amount) over w, avg(amount) over w from t window w as (order by id rows between 1000 preceding and current row)) s | 35.721000 | 34.843000 | 1.03 229 | select sum(factorial(trunc(mod(amount, 20))::int8)) from t_small | 296.055000 | 286.424000 | 1.03 57 | select sum(mod(amount, 100)) from t | 107.063000 | 104.175000 | 1.03 324 | select count(*) from t_special_mixed where sign(amount) > 0 | 56.301000 | 54.839000 | 1.03 323 | select sum(sign(amount)) from t_special_mixed | 49.803000 | 48.424000 | 1.03 321 | select sum(-amount) from t_special_mixed | 46.884000 | 45.344000 | 1.03 370 | select variance(amount) from t_small | 24.710000 | 24.089000 | 1.03 316 | select sum(amount * 2) from t_special_mixed | 52.811000 | 51.478000 | 1.03 353 | select count(*) from (select distinct amount from t) s | 240.974000 | 234.449000 | 1.03 177 | select sum(abs(amount)) from t_small | 51.641000 | 49.986000 | 1.03 284 | select sum(amount + amount) from t_special | 50.546000 | 49.035000 | 1.03 288 | select sum(sign(amount)) from t_special | 48.927000 | 47.253000 | 1.04 348 | COPY (SELECT amount FROM t) TO '/dev/null' WITH (FORMAT binary) | 83.604000 | 80.724000 | 1.04 219 | select sum(div(amount, 7)) from t_big | 81.279000 | 78.133000 | 1.04 227 | select sum(factorial(trunc(mod(amount, 20))::int8)) from t | 295.853000 | 283.768000 | 1.04 153 | select order_date, variance(amount) from t_small group by order_date | 123.544000 | 118.243000 | 1.04 87 | select order_date, variance(amount) from t_big where order_date > '2025-01-01' group by order_date | 77.383000 | 74.393000 | 1.04 342 | select sum(length(amount::text)) from t | 95.478000 | 92.150000 | 1.04 20 | select order_date, variance(amount) from t where order_date > '2025-01-01' group by order_date | 72.109000 | 69.060000 | 1.04 218 | select sum(div(amount, 7)) from t | 73.880000 | 70.925000 | 1.04 19 | select order_date, variance(amount) from t group by order_date | 124.469000 | 119.779000 | 1.04 118 | select sum(ceil(amount)) from t_big | 97.869000 | 93.914000 | 1.04 137 | select order_date, max(amount) from t_small group by order_date | 97.859000 | 92.906000 | 1.05 3 | select order_date, max(amount) from t group by order_date | 96.665000 | 91.803000 | 1.05 138 | select order_date, max(amount) from t_small where order_date > '2025-01-01' group by order_date | 59.661000 | 57.063000 | 1.05 295 | select sum(min_scale(amount)) from t_special | 38.583000 | 36.697000 | 1.05 85 | select variance(amount) from t_big where order_date > '2025-01-01' | 54.384000 | 51.662000 | 1.05 228 | select sum(factorial(trunc(mod(amount, 20))::int8)) from t_big | 301.323000 | 287.618000 | 1.05 86 | select order_date, variance(amount) from t_big group by order_date | 134.427000 | 128.002000 | 1.05 33 | select sum(amount + 100) from t | 79.473000 | 76.032000 | 1.05 328 | select sum(ceil(amount)) from t_special_mixed | 56.691000 | 53.767000 | 1.05 152 | select variance(amount) from t_small where order_date > '2025-01-01' | 49.198000 | 46.272000 | 1.06 71 | select order_date, max(amount) from t_big where order_date > '2025-01-01' group by order_date | 63.159000 | 59.708000 | 1.06 165 | select count(*) from t_small where amount > amount * 0.5 | 85.440000 | 80.741000 | 1.06 8 | select order_date, min(amount) from t where order_date > '2025-01-01' group by order_date | 61.975000 | 58.316000 | 1.06 7 | select order_date, min(amount) from t group by order_date | 102.726000 | 96.691000 | 1.06 141 | select order_date, min(amount) from t_small group by order_date | 99.825000 | 94.479000 | 1.06 98 | select count(*) from t_big where amount > amount * 0.5 | 86.229000 | 81.192000 | 1.06 4 | select order_date, max(amount) from t where order_date > '2025-01-01' group by order_date | 59.041000 | 55.440000 | 1.06 73 | select min(amount) from t_big where order_date > '2025-01-01' | 37.851000 | 35.848000 | 1.06 373 | select order_date, sum(amount), avg(amount) from t group by order_date | 38.222000 | 35.663000 | 1.07 69 | select max(amount) from t_big where order_date > '2025-01-01' | 41.880000 | 39.133000 | 1.07 70 | select order_date, max(amount) from t_big group by order_date | 104.720000 | 97.964000 | 1.07 75 | select order_date, min(amount) from t_big where order_date > '2025-01-01' group by order_date | 59.637000 | 55.876000 | 1.07 79 | select order_date, sum(amount) from t_big where order_date > '2025-01-01' group by order_date | 63.095000 | 58.801000 | 1.07 83 | select order_date, avg(amount) from t_big where order_date > '2025-01-01' group by order_date | 63.068000 | 58.906000 | 1.07 327 | select sum(floor(amount)) from t_special_mixed | 51.864000 | 48.354000 | 1.07 78 | select order_date, sum(amount) from t_big group by order_date | 104.140000 | 96.389000 | 1.08 18 | select variance(amount) from t where order_date > '2025-01-01' | 50.362000 | 46.633000 | 1.08 74 | select order_date, min(amount) from t_big group by order_date | 98.013000 | 90.731000 | 1.08 16 | select order_date, avg(amount) from t where order_date > '2025-01-01' group by order_date | 60.843000 | 56.087000 | 1.08 325 | select sum(round(amount, 1)) from t_special_mixed | 52.010000 | 48.356000 | 1.08 326 | select sum(trunc(amount, 1)) from t_special_mixed | 50.422000 | 46.727000 | 1.08 81 | select avg(amount) from t_big where order_date > '2025-01-01' | 40.280000 | 37.345000 | 1.08 23 | select order_date, max(amount), min(amount), sum(amount), avg(amount), variance(amount) from t group by order_date | 184.269000 | 168.293000 | 1.09 131 | select sum(case when amount > 50000 then amount * 0.9 else amount * 1.1 end) from t_big | 95.002000 | 86.977000 | 1.09 82 | select order_date, avg(amount) from t_big group by order_date | 105.149000 | 96.497000 | 1.09 11 | select order_date, sum(amount) from t group by order_date | 102.405000 | 93.978000 | 1.09 145 | select order_date, sum(amount) from t_small group by order_date | 103.807000 | 94.940000 | 1.09 31 | select count(*) from t where amount > amount * 0.5 | 84.822000 | 77.526000 | 1.09 158 | select order_date, max(amount), min(amount), sum(amount), avg(amount), variance(amount) from t_small where order_date > '2025-01-01' group by order_date | 97.914000 | 89.594000 | 1.09 146 | select order_date, sum(amount) from t_small where order_date > '2025-01-01' group by order_date | 62.407000 | 57.428000 | 1.09 150 | select order_date, avg(amount) from t_small where order_date > '2025-01-01' group by order_date | 62.426000 | 57.433000 | 1.09 64 | select sum(case when amount > 50000 then amount * 0.9 else amount * 1.1 end) from t | 91.183000 | 83.446000 | 1.09 367 | select variance(amount) from t_big | 28.888000 | 26.522000 | 1.09 24 | select order_date, max(amount), min(amount), sum(amount), avg(amount), variance(amount) from t where order_date > '2025-01-01' group by order_date | 100.535000 | 91.829000 | 1.09 294 | select sum(ln(abs(amount))) from t_special | 55.801000 | 50.676000 | 1.10 212 | select var_pop(amount) from t_small | 63.000000 | 57.322000 | 1.10 198 | select sum(case when amount > 500 then amount * 0.9 else amount * 1.1 end) from t_small | 91.725000 | 83.729000 | 1.10 368 | select sum(amount) from t_small | 18.780000 | 17.090000 | 1.10 364 | select stddev(amount) from t | 25.691000 | 23.345000 | 1.10 149 | select order_date, avg(amount) from t_small group by order_date | 104.033000 | 94.692000 | 1.10 144 | select sum(amount) from t_small where order_date > '2025-01-01' | 39.938000 | 36.390000 | 1.10 140 | select min(amount) from t_small where order_date > '2025-01-01' | 37.649000 | 34.100000 | 1.10 15 | select order_date, avg(amount) from t group by order_date | 103.466000 | 94.198000 | 1.10 84 | select variance(amount) from t_big | 73.842000 | 67.355000 | 1.10 293 | select sum(ceil(amount)) from t_special | 43.948000 | 39.920000 | 1.10 211 | select var_samp(amount) from t_small | 63.075000 | 57.173000 | 1.10 157 | select order_date, max(amount), min(amount), sum(amount), avg(amount), variance(amount) from t_small group by order_date | 177.883000 | 160.246000 | 1.11 363 | select variance(amount) from t | 25.846000 | 23.208000 | 1.11 91 | select order_date, max(amount), min(amount), sum(amount), avg(amount), variance(amount) from t_big where order_date > '2025-01-01' group by order_date | 108.243000 | 97.775000 | 1.11 210 | select stddev(amount) from t_small | 63.350000 | 57.239000 | 1.11 332 | select sum(scale(trim_scale(amount))) from t_special_mixed | 50.442000 | 45.418000 | 1.11 313 | select count(*) from t_special_mixed where amount > amount * 0.5 | 59.381000 | 53.485000 | 1.11 291 | select sum(trunc(amount, 1)) from t_special | 43.812000 | 39.358000 | 1.11 12 | select order_date, sum(amount) from t where order_date > '2025-01-01' group by order_date | 61.650000 | 55.692000 | 1.11 151 | select variance(amount) from t_small | 63.146000 | 56.745000 | 1.11 369 | select avg(amount) from t_small | 18.772000 | 16.805000 | 1.12 2 | select max(amount) from t where order_date > '2025-01-01' | 38.505000 | 34.439000 | 1.12 136 | select max(amount) from t_small where order_date > '2025-01-01' | 39.102000 | 34.990000 | 1.12 290 | select sum(round(amount, 1)) from t_special | 44.111000 | 39.425000 | 1.12 134 | select amount from t_big order by abs(amount - 50000) limit 1000 | 128.129000 | 114.759000 | 1.12 17 | select variance(amount) from t | 66.058000 | 59.211000 | 1.12 205 | select var_samp(amount) from t | 66.718000 | 59.393000 | 1.12 207 | select stddev(amount) from t_big | 75.316000 | 67.303000 | 1.12 208 | select var_samp(amount) from t_big | 74.875000 | 66.721000 | 1.12 209 | select var_pop(amount) from t_big | 74.940000 | 67.116000 | 1.12 307 | select order_date, max(amount), min(amount), sum(amount), avg(amount) from t_special_mixed group by order_date | 138.119000 | 123.022000 | 1.12 296 | select sum(scale(trim_scale(amount))) from t_special | 45.016000 | 40.286000 | 1.12 90 | select order_date, max(amount), min(amount), sum(amount), avg(amount), variance(amount) from t_big group by order_date | 196.954000 | 176.636000 | 1.12 292 | select sum(floor(amount)) from t_special | 44.370000 | 39.588000 | 1.12 148 | select avg(amount) from t_small where order_date > '2025-01-01' | 40.093000 | 35.741000 | 1.12 6 | select min(amount) from t where order_date > '2025-01-01' | 38.045000 | 34.082000 | 1.12 204 | select stddev_pop(amount) from t | 67.141000 | 59.280000 | 1.13 278 | select count(*) from t_special where amount > amount * 0.5 | 50.099000 | 44.528000 | 1.13 206 | select var_pop(amount) from t | 66.913000 | 59.379000 | 1.13 89 | select max(amount), min(amount), sum(amount), avg(amount), variance(amount) from t_big where order_date > '2025-01-01' | 84.783000 | 74.825000 | 1.13 201 | select amount from t_small order by abs(amount - 500) limit 1000 | 127.131000 | 112.171000 | 1.13 372 | select avg(amount) from t_special_mixed | 16.722000 | 14.779000 | 1.13 203 | select stddev_samp(amount) from t | 67.123000 | 59.219000 | 1.13 371 | select sum(amount) from t_special_mixed | 16.831000 | 14.920000 | 1.13 202 | select stddev(amount) from t | 66.791000 | 59.216000 | 1.13 156 | select max(amount), min(amount), sum(amount), avg(amount), variance(amount) from t_small where order_date > '2025-01-01' | 73.691000 | 65.233000 | 1.13 215 | select sum(+amount) from t | 49.661000 | 43.685000 | 1.14 275 | select count(*) from t_special where amount >= 'Infinity' | 42.905000 | 37.622000 | 1.14 309 | select count(*) from t_special_mixed where amount <> 'NaN' | 44.726000 | 39.223000 | 1.14 77 | select sum(amount) from t_big where order_date > '2025-01-01' | 40.855000 | 35.836000 | 1.14 67 | select amount from t order by abs(amount - 50000) limit 1000 | 126.793000 | 111.417000 | 1.14 14 | select avg(amount) from t where order_date > '2025-01-01' | 40.391000 | 35.296000 | 1.14 10 | select sum(amount) from t where order_date > '2025-01-01' | 39.998000 | 35.163000 | 1.14 359 | select count(*) from t a join t_small b on a.amount = b.amount | 144.348000 | 125.326000 | 1.15 22 | select max(amount), min(amount), sum(amount), avg(amount), variance(amount) from t where order_date > '2025-01-01' | 77.618000 | 67.390000 | 1.15 88 | select max(amount), min(amount), sum(amount), avg(amount), variance(amount) from t_big | 133.367000 | 114.471000 | 1.17 68 | select max(amount) from t_big | 50.107000 | 42.736000 | 1.17 272 | select count(*) from t_special where amount <> 'NaN' | 43.727000 | 37.455000 | 1.17 310 | select count(*) from t_special_mixed where amount > 100 | 46.489000 | 39.577000 | 1.17 270 | select order_date, max(amount), min(amount), sum(amount), avg(amount) from t_special group by order_date | 135.842000 | 116.149000 | 1.17 365 | select sum(amount) from t_big | 19.397000 | 16.602000 | 1.17 306 | select var_samp(amount) from t_special_mixed | 43.431000 | 37.223000 | 1.17 300 | select max(amount) from t_special_mixed | 44.031000 | 37.696000 | 1.17 26 | select count(*) from t where amount <> 0 | 48.680000 | 41.096000 | 1.18 273 | select count(*) from t_special where amount > 0 | 44.316000 | 37.473000 | 1.18 366 | select avg(amount) from t_big | 19.506000 | 16.580000 | 1.18 362 | select avg(amount) from t | 18.760000 | 15.885000 | 1.18 361 | select sum(amount) from t | 18.898000 | 15.993000 | 1.18 21 | select max(amount), min(amount), sum(amount), avg(amount), variance(amount) from t | 117.359000 | 99.880000 | 1.18 27 | select count(*) from t where amount > 10000 | 49.926000 | 42.190000 | 1.18 304 | select variance(amount) from t_special_mixed | 43.409000 | 36.436000 | 1.19 94 | select count(*) from t_big where amount > 10000 | 49.029000 | 41.373000 | 1.19 155 | select max(amount), min(amount), sum(amount), avg(amount), variance(amount) from t_small | 112.911000 | 94.846000 | 1.19 28 | select count(*) from t where amount >= 10000 | 50.049000 | 41.911000 | 1.19 257 | select sum(hash_numeric(amount)) from t_small | 44.432000 | 37.431000 | 1.19 95 | select count(*) from t_big where amount >= 10000 | 49.246000 | 41.376000 | 1.19 1 | select max(amount) from t | 42.229000 | 35.520000 | 1.19 72 | select min(amount) from t_big | 41.804000 | 34.884000 | 1.20 161 | select count(*) from t_small where amount > 100 | 50.756000 | 42.131000 | 1.20 93 | select count(*) from t_big where amount <> 0 | 49.142000 | 40.827000 | 1.20 305 | select stddev(amount) from t_special_mixed | 43.601000 | 36.289000 | 1.20 160 | select count(*) from t_small where amount <> 0 | 50.056000 | 41.804000 | 1.20 162 | select count(*) from t_small where amount >= 100 | 50.429000 | 42.044000 | 1.20 271 | select count(*) from t_special where amount = 'NaN' | 39.292000 | 32.651000 | 1.20 143 | select sum(amount) from t_small | 45.290000 | 37.513000 | 1.21 135 | select max(amount) from t_small | 43.536000 | 36.013000 | 1.21 301 | select min(amount) from t_special_mixed | 45.153000 | 37.224000 | 1.21 256 | select sum(hash_numeric(amount)) from t_big | 45.409000 | 37.479000 | 1.21 25 | select count(*) from t where amount = 12345.67 | 37.468000 | 30.885000 | 1.21 260 | select sum(hash_numeric_extended(amount, 42)) from t_big | 48.435000 | 40.115000 | 1.21 96 | select count(*) from t_big where amount < 50000 | 38.018000 | 31.086000 | 1.22 276 | select count(*) from t_special where amount <= '-Infinity' | 40.049000 | 32.886000 | 1.22 80 | select avg(amount) from t_big | 47.019000 | 38.639000 | 1.22 264 | select min(amount) from t_special | 47.176000 | 38.734000 | 1.22 261 | select sum(hash_numeric_extended(amount, 42)) from t_small | 47.583000 | 39.140000 | 1.22 259 | select sum(hash_numeric_extended(amount, 42)) from t | 45.942000 | 37.514000 | 1.22 147 | select avg(amount) from t_small | 45.203000 | 37.122000 | 1.22 5 | select min(amount) from t | 42.338000 | 34.806000 | 1.22 255 | select sum(hash_numeric(amount)) from t | 43.121000 | 35.112000 | 1.23 303 | select avg(amount) from t_special_mixed | 39.316000 | 31.936000 | 1.23 269 | select var_samp(amount) from t_special | 37.314000 | 30.262000 | 1.23 357 | select amount, count(*) from t_small group by amount | 119.143000 | 97.135000 | 1.23 76 | select sum(amount) from t_big | 46.467000 | 37.644000 | 1.23 92 | select count(*) from t_big where amount = 12345.67 | 37.761000 | 30.653000 | 1.23 265 | select sum(amount) from t_special | 37.513000 | 30.549000 | 1.23 266 | select avg(amount) from t_special | 37.656000 | 30.297000 | 1.24 13 | select avg(amount) from t | 45.100000 | 36.276000 | 1.24 139 | select min(amount) from t_small | 41.849000 | 33.874000 | 1.24 9 | select sum(amount) from t | 45.413000 | 36.499000 | 1.24 267 | select variance(amount) from t_special | 37.491000 | 30.253000 | 1.24 263 | select max(amount) from t_special | 47.734000 | 38.424000 | 1.24 274 | select count(*) from t_special where amount < 0 | 40.440000 | 32.626000 | 1.24 302 | select sum(amount) from t_special_mixed | 39.360000 | 31.823000 | 1.24 268 | select stddev(amount) from t_special | 37.591000 | 30.393000 | 1.24 308 | select count(*) from t_special_mixed where amount = 'NaN' | 39.083000 | 31.641000 | 1.24 311 | select count(*) from t_special_mixed where amount < 100 | 40.728000 | 32.748000 | 1.24 262 | select sum(hash_numeric_extended(amount, 42)) from t_special | 39.011000 | 31.317000 | 1.25 97 | select count(*) from t_big where amount <= 50000 | 37.850000 | 30.379000 | 1.25 30 | select count(*) from t where amount <= 50000 | 38.449000 | 30.708000 | 1.25 29 | select count(*) from t where amount < 50000 | 38.685000 | 30.742000 | 1.26 159 | select count(*) from t_small where amount = 123.45 | 39.220000 | 31.189000 | 1.26 338 | select amount from t_special_mixed order by amount desc limit 1000 | 53.410000 | 41.924000 | 1.27 66 | select amount from t order by amount desc limit 1000 | 58.977000 | 46.476000 | 1.27 132 | select amount from t_big order by amount limit 1000 | 55.699000 | 43.853000 | 1.27 258 | select sum(hash_numeric(amount)) from t_special | 38.524000 | 30.100000 | 1.28 163 | select count(*) from t_small where amount < 500 | 39.998000 | 31.140000 | 1.28 164 | select count(*) from t_small where amount <= 500 | 39.915000 | 31.295000 | 1.28 65 | select amount from t order by amount limit 1000 | 58.345000 | 45.542000 | 1.28 200 | select amount from t_small order by amount desc limit 1000 | 60.259000 | 47.164000 | 1.28 199 | select amount from t_small order by amount limit 1000 | 58.669000 | 45.895000 | 1.28 355 | select count(*) from (select distinct amount from t_small) s | 115.352000 | 89.140000 | 1.29 312 | select count(*) from t_special_mixed where amount = 500 | 36.945000 | 28.659000 | 1.29 337 | select amount from t_special_mixed order by amount limit 1000 | 53.811000 | 41.677000 | 1.29 298 | select amount from t_special order by amount limit 1000 | 52.794000 | 40.726000 | 1.30 299 | select amount from t_special order by amount desc limit 1000 | 52.984000 | 40.722000 | 1.30 360 | select count(*) from t_small where amount in (select amount from t_special_mixed) | 182.420000 | 129.829000 | 1.41 358 | select amount, count(*) from t_special group by amount | 134.659000 | 83.000000 | 1.62 356 | select count(*) from (select distinct amount from t_special) s | 130.892000 | 80.315000 | 1.63 133 | select amount from t_big order by amount desc limit 1000 | 506.504000 | 287.618000 | 1.76 | TOTAL | 32480.569000 | 30526.212000 | 1.06 (374 rows)