Skip to content

Commit

Permalink
benchmark script: report rounded milliseconds
Browse files Browse the repository at this point in the history
  • Loading branch information
derhuerst committed Mar 29, 2023
1 parent a76b74f commit ecb7103
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions benchmark/index.sql
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ BEGIN
INSERT INTO _benchmark
SELECT
_query,
round(avg(elapsed)::numeric, 2),
round(avg(elapsed)::numeric, 0),
min(elapsed),
round((percentile_cont(0.25) WITHIN GROUP (ORDER BY elapsed))::numeric, 2),
round((percentile_cont(0.50) WITHIN GROUP (ORDER BY elapsed))::numeric, 2),
round((percentile_cont(0.75) WITHIN GROUP (ORDER BY elapsed))::numeric, 2),
round((percentile_cont(0.95) WITHIN GROUP (ORDER BY elapsed))::numeric, 2),
round((percentile_cont(0.99) WITHIN GROUP (ORDER BY elapsed))::numeric, 2),
round((percentile_cont(0.25) WITHIN GROUP (ORDER BY elapsed))::numeric, 0),
round((percentile_cont(0.50) WITHIN GROUP (ORDER BY elapsed))::numeric, 0),
round((percentile_cont(0.75) WITHIN GROUP (ORDER BY elapsed))::numeric, 0),
round((percentile_cont(0.95) WITHIN GROUP (ORDER BY elapsed))::numeric, 0),
round((percentile_cont(0.99) WITHIN GROUP (ORDER BY elapsed))::numeric, 0),
max(elapsed),
_iterations
FROM _bench_results;
Expand Down

0 comments on commit ecb7103

Please sign in to comment.