Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
haf_block_explorer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
haf_block_explorer
Commits
5e34eca4
Commit
5e34eca4
authored
1 month ago
by
Michal Zander
Browse files
Options
Downloads
Patches
Plain Diff
Add performance test for transaction-statistics API
parent
44d6d864
No related branches found
No related tags found
2 merge requests
!298
Unify API returns to sql composite types
,
!297
New transactions API
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
backend/aggregated_transactions.sql
+1
-2
1 addition, 2 deletions
backend/aggregated_transactions.sql
tests/performance/endpoints.jmx
+34
-0
34 additions, 0 deletions
tests/performance/endpoints.jmx
with
35 additions
and
2 deletions
backend/aggregated_transactions.sql
+
1
−
2
View file @
5e34eca4
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
tests/performance/endpoints.jmx
+
34
−
0
View file @
5e34eca4
...
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment