Skip to content
Snippets Groups Projects
Commit 5e34eca4 authored by Michal Zander's avatar Michal Zander
Browse files

Add performance test for transaction-statistics API

parent 44d6d864
No related branches found
No related tags found
2 merge requests!298Unify API returns to sql composite types,!297New transactions API
......@@ -12,6 +12,7 @@ CREATE TYPE hafbe_backend.transaction_stats AS (
last_block_num INT
);
DROP VIEW IF EXISTS hafbe_backend.transaction_stats_by_year CASCADE;
CREATE OR REPLACE VIEW hafbe_backend.transaction_stats_by_year AS
WITH get_year AS (
SELECT
......@@ -163,8 +164,6 @@ END
$$;
CREATE OR REPLACE FUNCTION hafbe_backend.get_transaction_stats_by_month(
_account_id INT,
_coin_type INT,
_direction hafbe_types.sort_direction,
_from_block INT,
_to_block INT
......
......@@ -448,6 +448,40 @@
</HTTPSamplerProxy>
<hashTree/>
</hashTree>
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="transactions" enabled="true">
<stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
<elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
<boolProp name="LoopController.continue_forever">false</boolProp>
<stringProp name="LoopController.loops">${LOOP_COUNT}</stringProp>
</elementProp>
<stringProp name="ThreadGroup.num_threads">${THREAD_COUNT}</stringProp>
<stringProp name="ThreadGroup.ramp_time">1</stringProp>
<boolProp name="ThreadGroup.scheduler">false</boolProp>
<stringProp name="ThreadGroup.duration"></stringProp>
<stringProp name="ThreadGroup.delay"></stringProp>
<boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
</ThreadGroup>
<hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="transtaction-statistics" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
<stringProp name="HTTPSampler.domain"></stringProp>
<stringProp name="HTTPSampler.port"></stringProp>
<stringProp name="HTTPSampler.protocol"></stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
<stringProp name="HTTPSampler.path">rpc/get_transaction_statistics</stringProp>
<stringProp name="HTTPSampler.method">POST</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
<boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
<stringProp name="HTTPSampler.response_timeout"></stringProp>
</HTTPSamplerProxy>
<hashTree/>
</hashTree>
<CSVDataSet guiclass="TestBeanGUI" testclass="CSVDataSet" testname="CSV Data Set Config" enabled="true">
<stringProp name="filename">${PERFORMANCE_DATA_DIR}/db.csv</stringProp>
<stringProp name="fileEncoding"></stringProp>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment