Files
wehub-resource-sync 5357c39144
Fuzzer / Run Fuzzer (push) Has been cancelled
Race tests / Go race tests (ubuntu-22.04) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:01:40 +08:00

15 lines
564 B
SQL

select name, detail, mean_mult
from (
select
round(first_value(avg) over w, 2) as mean,
trim(TRAILING '.gen.lua' FROM trim(LEADING 'gen/' FROM test_name)) as name,
detail,
round(avg / lead(avg) over w, 2) as mean_mult,
round(median / lead(median) over w, 2) as med_mult,
round(sqrt(power(first_value(stdd) over w, 2) + power(last_value(stdd) over w, 2)), 3) as stdd,
row_number() over w as rn
from sysbench_results
having mod(rn,2) = 1
window w as (order by test_name, detail rows between CURRENT ROW and 1 following)
) sq;