Skip to content

Commit 65fb869

Browse files
committed
test: Update benchmarks after latest changes
1 parent 496db38 commit 65fb869

5 files changed

Lines changed: 180 additions & 178 deletions

‎expected/100_benchmark_basic_dml.out‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,14 @@ SELECT sql_saga.add_era('establishment'::regclass);
110110
(1 row)
111111

112112
SELECT sql_saga.add_unique_key('legal_unit'::regclass, column_names => ARRAY['id'], unique_key_name => 'legal_unit_id_valid');
113-
NOTICE: sql_saga: altering table public.legal_unit to add constraints: ADD CONSTRAINT legal_unit_id_valid_uniq UNIQUE (id, valid_from, valid_until) DEFERRABLE, ADD CONSTRAINT legal_unit_id_valid_excl EXCLUDE USING gist (id WITH =, daterange(valid_from, valid_until) WITH &&) DEFERRABLE
113+
NOTICE: sql_saga: altering table public.legal_unit to add constraints: ADD CONSTRAINT legal_unit_id_valid_uniq UNIQUE (id, valid_from, valid_until) DEFERRABLE, ADD CONSTRAINT legal_unit_id_valid_excl EXCLUDE USING gist (id WITH =, daterange(valid_from, valid_until) WITH &&) DEFERRABLE, ADD CONSTRAINT legal_unit_id_valid_pk_consistency_excl EXCLUDE USING gist (id WITH =, id WITH <>)
114114
add_unique_key
115115
---------------------
116116
legal_unit_id_valid
117117
(1 row)
118118

119119
SELECT sql_saga.add_unique_key('establishment'::regclass, column_names => ARRAY['id']);
120-
NOTICE: sql_saga: altering table public.establishment to add constraints: ADD CONSTRAINT establishment_id_valid_uniq UNIQUE (id, valid_from, valid_until) DEFERRABLE, ADD CONSTRAINT establishment_id_valid_excl EXCLUDE USING gist (id WITH =, daterange(valid_from, valid_until) WITH &&) DEFERRABLE
120+
NOTICE: sql_saga: altering table public.establishment to add constraints: ADD CONSTRAINT establishment_id_valid_uniq UNIQUE (id, valid_from, valid_until) DEFERRABLE, ADD CONSTRAINT establishment_id_valid_excl EXCLUDE USING gist (id WITH =, daterange(valid_from, valid_until) WITH &&) DEFERRABLE, ADD CONSTRAINT establishment_id_valid_pk_consistency_excl EXCLUDE USING gist (id WITH =, id WITH <>)
121121
add_unique_key
122122
------------------------
123123
establishment_id_valid
@@ -269,6 +269,7 @@ SELECT sql_saga.drop_foreign_key('establishment'::regclass, ARRAY['legal_unit_id
269269
(1 row)
270270

271271
SELECT sql_saga.drop_unique_key('establishment'::regclass, ARRAY['id'], 'valid');
272+
NOTICE: sql_saga: dropping constraint: ALTER TABLE public.establishment DROP CONSTRAINT establishment_id_valid_pk_consistency_excl
272273
drop_unique_key
273274
-----------------
274275

@@ -281,6 +282,7 @@ SELECT sql_saga.drop_era('establishment'::regclass, cleanup => true);
281282
(1 row)
282283

283284
SELECT sql_saga.drop_unique_key('legal_unit'::regclass, ARRAY['id'], 'valid');
285+
NOTICE: sql_saga: dropping constraint: ALTER TABLE public.legal_unit DROP CONSTRAINT legal_unit_id_valid_pk_consistency_excl
284286
drop_unique_key
285287
-----------------
286288

Lines changed: 56 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,79 @@
11
event | row_count | time_from_start | time_from_prev | row_count | rows_per_second
22
----------------------------------------+-----------+-----------------+----------------+-----------+-----------------
33
BEGIN | 0 | 0 ms | | 0 rows |
4-
Parent INSERT (Plain) | 0 | 82 ms | 82 ms | 0 rows |
5-
Parent INSERT (Plain) | 1000 | 84 ms | 2 ms | 1000 rows | ~524659 rows/s
6-
Parent UPDATE Key (Plain) | 0 | 84 ms | 0 ms | 0 rows |
7-
Parent UPDATE Key (Plain) | 1000 | 87 ms | 3 ms | 1000 rows | ~359195 rows/s
8-
Parent UPDATE Non-Key (Plain) | 0 | 87 ms | 0 ms | 0 rows |
9-
Parent UPDATE Non-Key (Plain) | 1000 | 89 ms | 2 ms | 1000 rows | ~441501 rows/s
10-
Parent DELETE (Plain) | 0 | 89 ms | 0 ms | 0 rows |
11-
Parent DELETE (Plain) | 1000 | 90 ms | 1 ms | 1000 rows | ~0 rows/s
12-
Child INSERT (Plain) | 0 | 90 ms | 0 ms | 0 rows |
13-
Child INSERT (Plain) | 1000 | 91 ms | 1 ms | 1000 rows | ~668003 rows/s
14-
Child UPDATE Key (Plain) | 0 | 92 ms | 0 ms | 0 rows |
15-
Child UPDATE Key (Plain) | 1000 | 94 ms | 2 ms | 1000 rows | ~465549 rows/s
16-
Child UPDATE Non-Key (Plain) | 0 | 94 ms | 0 ms | 0 rows |
17-
Child UPDATE Non-Key (Plain) | 1000 | 96 ms | 2 ms | 1000 rows | ~440141 rows/s
18-
Child DELETE (Plain) | 0 | 96 ms | 0 ms | 0 rows |
19-
Child DELETE (Plain) | 1000 | 97 ms | 1 ms | 1000 rows | ~0 rows/s
20-
Regular INSERT (Plain) | 0 | 97 ms | 0 ms | 0 rows |
21-
Regular INSERT (Plain) | 1000 | 98 ms | 2 ms | 1000 rows | ~664452 rows/s
22-
Regular UPDATE (Plain) | 0 | 98 ms | 0 ms | 0 rows |
23-
Regular UPDATE (Plain) | 1000 | 101 ms | 2 ms | 1000 rows | ~435730 rows/s
24-
Regular DELETE (Plain) | 0 | 101 ms | 0 ms | 0 rows |
25-
Regular DELETE (Plain) | 1000 | 102 ms | 1 ms | 1000 rows | ~0 rows/s
26-
Parent INSERT (No Index) | 0 | 623 ms | 522 ms | 0 rows |
27-
Parent INSERT (No Index) | 1000 | 644 ms | 21 ms | 1000 rows | ~48659 rows/s
28-
Parent UPDATE Key (No Index) | 0 | 644 ms | 0 ms | 0 rows |
29-
Parent UPDATE Key (No Index) | 1000 | 1 secs | 427 ms | 1000 rows | ~2344 rows/s
4+
Parent INSERT (Plain) | 0 | 91 ms | 91 ms | 0 rows |
5+
Parent INSERT (Plain) | 1000 | 96 ms | 5 ms | 1000 rows | ~199084 rows/s
6+
Parent UPDATE Key (Plain) | 0 | 98 ms | 3 ms | 0 rows |
7+
Parent UPDATE Key (Plain) | 1000 | 102 ms | 3 ms | 1000 rows | ~317158 rows/s
8+
Parent UPDATE Non-Key (Plain) | 0 | 102 ms | 0 ms | 0 rows |
9+
Parent UPDATE Non-Key (Plain) | 1000 | 104 ms | 2 ms | 1000 rows | ~402901 rows/s
10+
Parent DELETE (Plain) | 0 | 104 ms | 0 ms | 0 rows |
11+
Parent DELETE (Plain) | 1000 | 114 ms | 10 ms | 1000 rows | ~103157 rows/s
12+
Child INSERT (Plain) | 0 | 114 ms | 0 ms | 0 rows |
13+
Child INSERT (Plain) | 1000 | 118 ms | 3 ms | 1000 rows | ~306185 rows/s
14+
Child UPDATE Key (Plain) | 0 | 118 ms | 0 ms | 0 rows |
15+
Child UPDATE Key (Plain) | 1000 | 120 ms | 2 ms | 1000 rows | ~463822 rows/s
16+
Child UPDATE Non-Key (Plain) | 0 | 120 ms | 0 ms | 0 rows |
17+
Child UPDATE Non-Key (Plain) | 1000 | 123 ms | 3 ms | 1000 rows | ~393856 rows/s
18+
Child DELETE (Plain) | 0 | 123 ms | 0 ms | 0 rows |
19+
Child DELETE (Plain) | 1000 | 123 ms | 1 ms | 1000 rows | ~0 rows/s
20+
Regular INSERT (Plain) | 0 | 123 ms | 0 ms | 0 rows |
21+
Regular INSERT (Plain) | 1000 | 126 ms | 2 ms | 1000 rows | ~448029 rows/s
22+
Regular UPDATE (Plain) | 0 | 126 ms | 0 ms | 0 rows |
23+
Regular UPDATE (Plain) | 1000 | 129 ms | 3 ms | 1000 rows | ~355240 rows/s
24+
Regular DELETE (Plain) | 0 | 129 ms | 0 ms | 0 rows |
25+
Regular DELETE (Plain) | 1000 | 129 ms | 0 ms | 1000 rows | ~0 rows/s
26+
Parent INSERT (No Index) | 0 | 857 ms | 728 ms | 0 rows |
27+
Parent INSERT (No Index) | 1000 | 892 ms | 35 ms | 1000 rows | ~28884 rows/s
28+
Parent UPDATE Key (No Index) | 0 | 892 ms | 0 ms | 0 rows |
29+
Parent UPDATE Key (No Index) | 1000 | 1 secs | 454 ms | 1000 rows | ~2201 rows/s
3030
Parent UPDATE Non-Key (No Index) | 0 | 1 secs | 0 ms | 0 rows |
31-
Parent UPDATE Non-Key (No Index) | 1000 | 1 secs | 13 ms | 1000 rows | ~75924 rows/s
31+
Parent UPDATE Non-Key (No Index) | 1000 | 1 secs | 21 ms | 1000 rows | ~48256 rows/s
3232
Parent DELETE (No Index) | 0 | 1 secs | 0 ms | 0 rows |
33-
Parent DELETE (No Index) | 1000 | 1 secs | 400 ms | 1000 rows | ~2501 rows/s
34-
Parent DELETE (Check Only, No Index) | 0 | 1 secs | 0 ms | 0 rows |
35-
Parent DELETE (Check Only, No Index) | 1000 | 2 secs | 400 ms | 1000 rows | ~2501 rows/s
33+
Parent DELETE (No Index) | 1000 | 2 secs | 426 ms | 1000 rows | ~2349 rows/s
34+
Parent DELETE (Check Only, No Index) | 0 | 2 secs | 0 ms | 0 rows |
35+
Parent DELETE (Check Only, No Index) | 1000 | 2 secs | 437 ms | 1000 rows | ~2287 rows/s
3636
Child INSERT (No Index) | 0 | 2 secs | 0 ms | 0 rows |
37-
Child INSERT (No Index) | 1000 | 2 secs | 18 ms | 1000 rows | ~56606 rows/s
37+
Child INSERT (No Index) | 1000 | 2 secs | 27 ms | 1000 rows | ~36921 rows/s
3838
Child UPDATE Key (No Index) | 0 | 2 secs | 0 ms | 0 rows |
39-
Child UPDATE Key (No Index) | 1000 | 2 secs | 15 ms | 1000 rows | ~66164 rows/s
39+
Child UPDATE Key (No Index) | 1000 | 2 secs | 21 ms | 1000 rows | ~47199 rows/s
4040
Child UPDATE Non-Key (No Index) | 0 | 2 secs | 0 ms | 0 rows |
41-
Child UPDATE Non-Key (No Index) | 1000 | 2 secs | 12 ms | 1000 rows | ~86851 rows/s
41+
Child UPDATE Non-Key (No Index) | 1000 | 2 secs | 18 ms | 1000 rows | ~56805 rows/s
4242
Child DELETE (No Index) | 0 | 2 secs | 0 ms | 0 rows |
4343
Child DELETE (No Index) | 1000 | 2 secs | 1 ms | 1000 rows | ~0 rows/s
4444
Regular INSERT (No Index) | 0 | 2 secs | 0 ms | 0 rows |
45-
Regular INSERT (No Index) | 1000 | 2 secs | 8 ms | 1000 rows | ~122850 rows/s
45+
Regular INSERT (No Index) | 1000 | 2 secs | 8 ms | 1000 rows | ~119403 rows/s
4646
Regular UPDATE (No Index) | 0 | 2 secs | 0 ms | 0 rows |
4747
Regular UPDATE (No Index) | 1000 | 2 secs | 0 ms | 1000 rows | ~0 rows/s
4848
Regular DELETE (No Index) | 0 | 2 secs | 0 ms | 0 rows |
4949
Regular DELETE (No Index) | 1000 | 2 secs | 0 ms | 1000 rows | ~0 rows/s
50-
Parent INSERT (With Index) | 0 | 2 secs | 18 ms | 0 rows |
51-
Parent INSERT (With Index) | 1000 | 2 secs | 21 ms | 1000 rows | ~48728 rows/s
50+
Parent INSERT (With Index) | 0 | 2 secs | 20 ms | 0 rows |
51+
Parent INSERT (With Index) | 1000 | 2 secs | 35 ms | 1000 rows | ~28798 rows/s
5252
Parent UPDATE Key (With Index) | 0 | 2 secs | 0 ms | 0 rows |
53-
Parent UPDATE Key (With Index) | 1000 | 2 secs | 30 ms | 1000 rows | ~33316 rows/s
53+
Parent UPDATE Key (With Index) | 1000 | 2 secs | 42 ms | 1000 rows | ~24050 rows/s
5454
Parent UPDATE Non-Key (With Index) | 0 | 2 secs | 0 ms | 0 rows |
55-
Parent UPDATE Non-Key (With Index) | 1000 | 2 secs | 14 ms | 1000 rows | ~72160 rows/s
55+
Parent UPDATE Non-Key (With Index) | 1000 | 2 secs | 23 ms | 1000 rows | ~43439 rows/s
5656
Parent DELETE (With Index) | 0 | 2 secs | 0 ms | 0 rows |
57-
Parent DELETE (With Index) | 1000 | 2 secs | 25 ms | 1000 rows | ~39811 rows/s
57+
Parent DELETE (With Index) | 1000 | 2 secs | 9 ms | 1000 rows | ~106826 rows/s
5858
Parent DELETE (Check Only, With Index) | 0 | 2 secs | 0 ms | 0 rows |
59-
Parent DELETE (Check Only, With Index) | 1000 | 2 secs | 9 ms | 1000 rows | ~110926 rows/s
59+
Parent DELETE (Check Only, With Index) | 1000 | 2 secs | 9 ms | 1000 rows | ~107654 rows/s
6060
Child INSERT (With Index) | 0 | 2 secs | 0 ms | 0 rows |
61-
Child INSERT (With Index) | 1000 | 2 secs | 24 ms | 1000 rows | ~41490 rows/s
61+
Child INSERT (With Index) | 1000 | 2 secs | 34 ms | 1000 rows | ~29456 rows/s
6262
Child UPDATE Key (With Index) | 0 | 2 secs | 0 ms | 0 rows |
63-
Child UPDATE Key (With Index) | 1000 | 2 secs | 18 ms | 1000 rows | ~55060 rows/s
64-
Child UPDATE Non-Key (With Index) | 0 | 2 secs | 0 ms | 0 rows |
65-
Child UPDATE Non-Key (With Index) | 1000 | 2 secs | 15 ms | 1000 rows | ~66836 rows/s
66-
Child DELETE (With Index) | 0 | 2 secs | 0 ms | 0 rows |
67-
Child DELETE (With Index) | 1000 | 2 secs | 0 ms | 1000 rows | ~0 rows/s
68-
Regular INSERT (With Index) | 0 | 2 secs | 0 ms | 0 rows |
69-
Regular INSERT (With Index) | 1000 | 2 secs | 9 ms | 1000 rows | ~111259 rows/s
70-
Regular UPDATE (With Index) | 0 | 2 secs | 0 ms | 0 rows |
71-
Regular UPDATE (With Index) | 1000 | 2 secs | 0 ms | 1000 rows | ~0 rows/s
72-
Regular DELETE (With Index) | 0 | 2 secs | 0 ms | 0 rows |
73-
Regular DELETE (With Index) | 1000 | 2 secs | 0 ms | 1000 rows | ~0 rows/s
74-
temporal_merge Parent (With Index) | 0 | 2 secs | 43 ms | 0 rows |
75-
temporal_merge Parent (With Index) | 1000 | 3 secs | 477 ms | 1000 rows | ~2098 rows/s
76-
temporal_merge Child (With Index) | 0 | 3 secs | 5 ms | 0 rows |
77-
temporal_merge Child (With Index) | 1000 | 3 secs | 423 ms | 1000 rows | ~2364 rows/s
63+
Child UPDATE Key (With Index) | 1000 | 3 secs | 25 ms | 1000 rows | ~39574 rows/s
64+
Child UPDATE Non-Key (With Index) | 0 | 3 secs | 0 ms | 0 rows |
65+
Child UPDATE Non-Key (With Index) | 1000 | 3 secs | 21 ms | 1000 rows | ~46821 rows/s
66+
Child DELETE (With Index) | 0 | 3 secs | 0 ms | 0 rows |
67+
Child DELETE (With Index) | 1000 | 3 secs | 1 ms | 1000 rows | ~0 rows/s
68+
Regular INSERT (With Index) | 0 | 3 secs | 0 ms | 0 rows |
69+
Regular INSERT (With Index) | 1000 | 3 secs | 9 ms | 1000 rows | ~112701 rows/s
70+
Regular UPDATE (With Index) | 0 | 3 secs | 0 ms | 0 rows |
71+
Regular UPDATE (With Index) | 1000 | 3 secs | 0 ms | 1000 rows | ~0 rows/s
72+
Regular DELETE (With Index) | 0 | 3 secs | 0 ms | 0 rows |
73+
Regular DELETE (With Index) | 1000 | 3 secs | 0 ms | 1000 rows | ~0 rows/s
74+
temporal_merge Parent (With Index) | 0 | 3 secs | 47 ms | 0 rows |
75+
temporal_merge Parent (With Index) | 1000 | 3 secs | 513 ms | 1000 rows | ~1949 rows/s
76+
temporal_merge Child (With Index) | 0 | 3 secs | 6 ms | 0 rows |
77+
temporal_merge Child (With Index) | 1000 | 4 secs | 489 ms | 1000 rows | ~2045 rows/s
7878
(75 rows)
7979

0 commit comments

Comments
 (0)