Add a simple pgbench
Very naive, just to quickly evaluate perf as w go.
Cette révision appartient à :
Parent
0b9b6aa124
révision
988192cbe1
2 fichiers modifiés avec 12 ajouts et 2 suppressions
4
Makefile
4
Makefile
|
@ -17,5 +17,5 @@ pgbench: NPROCS=$(shell nproc)
|
|||
pgbench: NJOBS=$(shell nproc)
|
||||
pgbench: sql/pgbench.sql
|
||||
pgbench -f $< -T 10 --progress 1 --no-vacuum \
|
||||
-c $$(( $(NPROCS) * 4 )) \
|
||||
-j $$(( $(NJOBS) * 4 ))
|
||||
-c $$(( $(NPROCS) * 16 )) \
|
||||
-j $$(( $(NJOBS) * 16 ))
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
set client_min_messages to WARNING;
|
||||
|
||||
select pacs_create_measure((:client_id)::Name);
|
||||
select pacs_increment_measure((:client_id)::Name);
|
||||
select pacs_get_measure((:client_id)::Name);
|
||||
select pacs_reset_measure((:client_id)::Name);
|
||||
select pacs_drop_measure((:client_id)::Name);
|
||||
|
||||
\set measure 100 + random(1,5)
|
||||
select pacs_increment_measure((:measure)::Name);
|
Chargement…
Référencer dans un nouveau ticket