-
Notifications
You must be signed in to change notification settings - Fork 5
/
graphql_bench_config.yml
731 lines (729 loc) · 16.4 KB
/
graphql_bench_config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
url: 'https://analyser-api.iotex.io/graphql'
headers:
Content-Type: application/json
# "Debug" mode enables request and response logging for Autocannon and K6
# This lets you see what is happening and confirm proper behavior.
# This should be disabled for genuine benchmarks, and only used for debugging/visibility.
debug: false
queries:
# Name: Unique name for the query
- name: Chain
# Tools: List of benchmarking tools to run: ['autocannon', 'k6', 'wrk2']
tools: [k6]
# Execution Strategy: the type of the benchmark to run. Options are:
# REQUESTS_PER_SECOND: Fixed duration, fixed rps. Example parameters:
# duration: 10s
# rps: 500
# FIXED_REQUEST_NUMBER: Complete requests as fast as possible, no duration. Example parameters:
# requests: 500
# MAX_REQUESTS_IN_DURATION: Make as many requests as possible in duration. Example parameters:
# duration: 10s
# MULTI_STAGE: (K6 only currently) Several stages of REQUESTS_PER_SECOND benchmark. Example parameters:
# initial_rps: 0
# stages:
# - duration: 5s
# target: 100
# - duration: 10s
# target: 1000
# CUSTOM: Pass completely custom options to each tool (see full API spec for all supported options, very large)
execution_strategy: FIXED_REQUEST_NUMBER
requests: 5
connections: 5
query: |
query{
Chain{
mostRecentEpoch
mostRecentBlockHeight
}
}
- name: BookKeeping
tools: [k6]
execution_strategy: FIXED_REQUEST_NUMBER
requests: 5
connections: 5
query: |
query {
BookKeeping(
startEpoch: 23328
epochCount: 5
delegateName: "metanyx"
percentage: 90
includeFoundationBonus: false
includeBlockReward: false
pagination: { skip: 0, first: 2 }
) {
exist
count
rewardDistribution {
voterIotexAddress
voterEthAddress
amount
}
}
}
- name: Productivity
tools: [k6]
execution_strategy: FIXED_REQUEST_NUMBER
requests: 5
connections: 5
query: |
query {
Productivity(startEpoch: 25020, epochCount: 10, delegateName: "iotexlab") {
productivity {
exist
production
expectedProduction
}
}
}
- name: Reward
tools: [k6]
execution_strategy: FIXED_REQUEST_NUMBER
requests: 5
connections: 5
query: |
query {
Reward(startEpoch: 20000, epochCount: 2, delegateName: "metanyx") {
reward {
exist
blockReward
epochReward
foundationBonus
}
}
}
- name: BucketInfo
tools: [k6]
execution_strategy: FIXED_REQUEST_NUMBER
requests: 5
connections: 5
query: |
query {
BucketInfo(
startEpoch: 20000
epochCount: 1
delegateName: "metanyx"
pagination: { skip: 0, first: 1 }
) {
exist
count
bucketInfoList {
count
epochNumber
bucketInfo {
votes
voterEthAddress
voterIotexAddress
isNative
weightedVotes
remainingDuration
startTime
decay
}
}
}
}
- name: Staking
tools: [k6]
execution_strategy: FIXED_REQUEST_NUMBER
requests: 5
connections: 5
query: |
query {
Staking(startEpoch: 20000, epochCount: 2, delegateName: "metanyx") {
exist
stakingInfo {
epochNumber
totalStaking
selfStaking
}
}
}
- name: ProbationHistoricalRate
tools: [k6]
execution_strategy: FIXED_REQUEST_NUMBER
requests: 5
connections: 5
query: |
query {
ProbationHistoricalRate(
startEpoch: 27650
epochCount: 5
delegateName: "chainshield"
) {
probationHistoricalRate
}
}
- name: NumberOfActions
tools: [k6]
execution_strategy: FIXED_REQUEST_NUMBER
requests: 5
connections: 5
query: |
query {
NumberOfActions(startEpoch: 20000, epochCount: 5) {
exist
count
}
}
- name: TotalTransferredTokens
tools: [k6]
execution_strategy: FIXED_REQUEST_NUMBER
requests: 5
connections: 5
query: |
query {
TotalTransferredTokens(startEpoch: 20000, epochCount: 2) {
totalTransferredTokens
}
}
- name: VotingMeta
tools: [k6]
execution_strategy: FIXED_REQUEST_NUMBER
requests: 5
connections: 5
query: |
query {
VotingMeta(startEpoch: 20000, epochCount: 1) {
exist
candidateMeta {
epochNumber
totalCandidates
consensusDelegates
totalWeightedVotes
}
}
}
- name: CandidateInfo
tools: [k6]
execution_strategy: FIXED_REQUEST_NUMBER
requests: 5
connections: 5
query: |
query {
CandidateInfo(startEpoch: 20000, epochCount: 1) {
candidateInfo {
epochNumber
candidates {
name
address
totalWeightedVotes
selfStakingTokens
operatorAddress
rewardAddress
}
}
}
}
- name: RewardSources
tools: [k6]
execution_strategy: FIXED_REQUEST_NUMBER
requests: 5
connections: 5
query: |
query {
RewardSources(
startEpoch: 20000
epochCount: 1
voterIotxAddress: "io1rl62pepun2g7sed2tpv4tx7ujynye34fqjv40t"
) {
exist
delegateDistributions {
delegateName
amount
}
}
}
- name: ActiveAccounts
tools: [k6]
execution_strategy: FIXED_REQUEST_NUMBER
requests: 5
connections: 5
query: |
query{
ActiveAccounts(count:5){
activeAccounts
}
}
- name: OperatorAddress
tools: [k6]
execution_strategy: FIXED_REQUEST_NUMBER
requests: 5
connections: 5
query: |
query{
OperatorAddress(aliasName:"metanyx") {
exist
operatorAddress
}
}
- name: Alias
tools: [k6]
execution_strategy: FIXED_REQUEST_NUMBER
requests: 5
connections: 5
query: |
query{
Alias(operatorAddress:"io10reczcaelglh5xmkay65h9vw3e5dp82e8vw0rz") {
exist
aliasName
}
}
- name: TotalNumberOfHolders
tools: [k6]
execution_strategy: FIXED_REQUEST_NUMBER
requests: 5
connections: 5
query: |
query{
TotalNumberOfHolders{
totalNumberOfHolders
}
}
- name: TotalAccountSupply
tools: [k6]
execution_strategy: FIXED_REQUEST_NUMBER
requests: 5
connections: 5
query: |
query{
TotalAccountSupply{
totalAccountSupply
}
}
- name: ActionByDates
tools: [k6]
execution_strategy: FIXED_REQUEST_NUMBER
requests: 5
connections: 5
query: |
query{
ActionByDates(
startDate: 1624503172
endDate: 1624503182
pagination: { skip: 0, first: 1 }
) {
exist
count
actions {
actHash
blkHash
timestamp
actType
sender
recipient
amount
gasFee
blkHeight
}
}
}
- name: ActionByHash
tools: [k6]
execution_strategy: FIXED_REQUEST_NUMBER
requests: 5
connections: 5
query: |
query{
ActionByHash(
actHash: "160a75d845c5ef35e6b2e697dc752066ee7a0dacf750c8c1a6a187090dd3df9f"
) {
actionInfo {
actHash
blkHash
timestamp
actType
sender
recipient
amount
gasFee
blkHeight
}
evmTransfers {
sender
recipient
amount
}
}
}
- name: ActionByAddress
tools: [k6]
execution_strategy: FIXED_REQUEST_NUMBER
requests: 5
connections: 5
query: |
query{
ActionByAddress(
address: "io1x58dug5237g40hrtme7qx4nva9x98ehk4wchz4"
pagination:{skip:0, first:1}
) {
count
actions {
actHash
blkHash
timestamp
actType
sender
recipient
amount
gasFee
blkHeight
}
}
}
- name: EvmTransfersByAddress
tools: [k6]
execution_strategy: FIXED_REQUEST_NUMBER
requests: 5
connections: 5
query: |
query{
EvmTransfersByAddress(
address: "io14yqd25kr6k4zss59u7sq9hme4r862yfpezf9dx"
pagination: { skip: 0, first: 1 }
) {
exist
count
evmTransfers {
sender
recipient
actHash
blkHash
blkHeight
amount
timestamp
}
}
}
- name: ActionByType
tools: [k6]
execution_strategy: FIXED_REQUEST_NUMBER
requests: 5
connections: 5
query: |
query{
ActionByType(
type: "transfer"
pagination:{skip:0, first:1}
) {
count
actions {
actHash
blkHash
timestamp
actType
sender
recipient
amount
gasFee
blkHeight
}
}
}
- name: XRC20ByContractAddress
tools: [k6]
execution_strategy: FIXED_REQUEST_NUMBER
requests: 5
connections: 5
query: |
query{
XRC20ByContractAddress(
address: "io1gafy2msqmmmqyhrhk4dg3ghc59cplyhekyyu26"
pagination: { skip: 0, first: 1 }
) {
exist
count
xrc20 {
actHash
contract
sender
amount
recipient
timestamp
}
}
}
- name: XRC20ByAddress
tools: [k6]
execution_strategy: FIXED_REQUEST_NUMBER
requests: 5
connections: 5
query: |
query{
XRC20ByAddress(
address: "io1mhvlzj7y2t9y2dtzauyvyzzrvle6l7sekcf245"
pagination: { skip: 0, first: 1 }
) {
exist
count
xrc20 {
actHash
contract
sender
amount
recipient
timestamp
}
}
}
- name: XRC20ByPage
tools: [k6]
execution_strategy: FIXED_REQUEST_NUMBER
requests: 5
connections: 5
query: |
query{
XRC20ByPage(
pagination: { skip: 0, first: 1 }
) {
exist
count
xrc20 {
actHash
contract
sender
amount
recipient
timestamp
}
}
}
- name: XRC20Addresses
tools: [k6]
execution_strategy: FIXED_REQUEST_NUMBER
requests: 5
connections: 5
query: |
query{
XRC20Addresses(
pagination: { skip: 0, first: 2 }
) {
exist
count
addresses
}
}
- name: XRC20TokenHolderAddresses
tools: [k6]
execution_strategy: FIXED_REQUEST_NUMBER
requests: 5
connections: 5
query: |
query{
XRC20TokenHolderAddresses(
tokenAddress: "io1gafy2msqmmmqyhrhk4dg3ghc59cplyhekyyu26"
pagination: { skip: 0, first: 5 }
) {
count
addresses
}
}
- name: XRC721ByContractAddress
tools: [k6]
execution_strategy: FIXED_REQUEST_NUMBER
requests: 5
connections: 5
query: |
query{
XRC721ByContractAddress(
address: "io1052s604n44atw5klykwff29tnrtsplqqkdajxf"
pagination: { skip: 0, first: 1 }
) {
exist
count
xrc721 {
actHash
contract
sender
amount
recipient
timestamp
}
}
}
- name: XRC721ByAddress
tools: [k6]
execution_strategy: FIXED_REQUEST_NUMBER
requests: 5
connections: 5
query: |
query{
XRC721ByAddress(
address: "io1lutyka7aw7u872kzsujuz8pwn9qsrcjvs6e7jw"
pagination: { skip: 0, first: 1 }
) {
exist
count
xrc721 {
actHash
contract
sender
amount
recipient
timestamp
}
}
}
- name: XRC721ByPage
tools: [k6]
execution_strategy: FIXED_REQUEST_NUMBER
requests: 5
connections: 5
query: |
query{
XRC721ByPage(
pagination: { skip: 0, first: 1 }
) {
exist
count
xrc721 {
actHash
contract
sender
amount
recipient
timestamp
}
}
}
- name: XRC721Addresses
tools: [k6]
execution_strategy: FIXED_REQUEST_NUMBER
requests: 5
connections: 5
query: |
query{
XRC721Addresses(
pagination: { skip: 0, first: 2 }
) {
exist
count
addresses
}
}
- name: XRC721TokenHolderAddresses
tools: [k6]
execution_strategy: FIXED_REQUEST_NUMBER
requests: 5
connections: 5
query: |
query{
XRC721TokenHolderAddresses(
tokenAddress: "io1asxdtswkr9p6r9du57ecrhrql865tf2qxue6hw"
pagination: { skip: 0, first: 5 }
) {
count
addresses
}
}
- name: Hermes
tools: [k6]
execution_strategy: FIXED_REQUEST_NUMBER
requests: 5
connections: 5
query: |
query{
Hermes(startEpoch: 20000, epochCount: 1,
rewardAddress: "io12mgttmfa2ffn9uqvn0yn37f4nz43d248l2ga85") {
hermesDistribution {
delegateName,
rewardDistribution{
voterEthAddress,
voterIotexAddress,
amount
},
stakingIotexAddress,
voterCount,
waiveServiceFee,
refund
}
}
}
- name: HermesAverageStats
tools: [k6]
execution_strategy: FIXED_REQUEST_NUMBER
requests: 5
connections: 5
query: |
query{
HermesAverageStats(
startEpoch: 20000
epochCount: 1
rewardAddress: "io12mgttmfa2ffn9uqvn0yn37f4nz43d248l2ga85"
) {
exist
averagePerEpoch {
delegateName
rewardDistribution
totalWeightedVotes
}
}
}
- name: HermesByDelegate
tools: [k6]
execution_strategy: FIXED_REQUEST_NUMBER
requests: 5
connections: 5
query: |
query{
HermesByDelegate(startEpoch: 20000, epochCount: 1,
delegateName: "a4x", pagination:{skip:0, first: 1}) {
count
exist
distributionRatio{
blockRewardRatio
epochNumber
epochRewardRatio
foundationBonusRatio
}
totalRewardsDistributed
voterInfoList{
actHash
amount
fromEpoch
toEpoch
timestamp
voterAddress
}
}
}
- name: HermesByVoter
tools: [k6]
execution_strategy: FIXED_REQUEST_NUMBER
requests: 5
connections: 5
query: |
query{
HermesByVoter(
startEpoch: 13752
epochCount: 10
voterAddress: "io13hlj049e96gpdxfr0atkhq3d6mhgzxx7mrmg00",
pagination:{skip: 0, first: 1}
){
count
exist
delegates{
delegateName
fromEpoch
toEpoch
amount
actHash
timestamp
}
totalRewardReceived
}
}
- name: HermesMeta
tools: [k6]
execution_strategy: FIXED_REQUEST_NUMBER
requests: 5
connections: 5
query: |
query{
HermesMeta(startEpoch: 20000, epochCount: 20) {
exist
numberOfDelegates
numberOfRecipients
totalRewardDistributed
}
}