Skip to content

Commit 560aec1

Browse files
author
francois branciard
committed
fix gas test
1 parent 1fa4f1e commit 560aec1

11 files changed

+82
-167
lines changed
-68.6 KB
Binary file not shown.
-90.4 KB
Binary file not shown.

metrics/allTransactionsCostTab.json

Lines changed: 21 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,25 @@
44
"spendBy": "marketplaceCreator",
55
"when": "init",
66
"function": "newWorkerPoolHub",
7-
"gas": 4324295
7+
"gas": 3706145
88
},
99
{
1010
"spendBy": "marketplaceCreator",
1111
"when": "init",
1212
"function": "newAppHub",
13-
"gas": 1745403
13+
"gas": 803533
1414
},
1515
{
1616
"spendBy": "marketplaceCreator",
1717
"when": "init",
1818
"function": "newDatasetHub",
19-
"gas": 1746131
19+
"gas": 803597
2020
},
2121
{
2222
"spendBy": "marketplaceCreator",
2323
"when": "init",
2424
"function": "newIexecHub",
25-
"gas": 5741596
25+
"gas": 4961625
2626
},
2727
{
2828
"spendBy": "marketplaceCreator",
@@ -46,7 +46,7 @@
4646
"spendBy": "marketplaceCreator",
4747
"when": "init",
4848
"function": "newMarketplace",
49-
"gas": 667966
49+
"gas": 792013
5050
},
5151
{
5252
"spendBy": "marketplaceCreator",
@@ -58,85 +58,79 @@
5858
"spendBy": "scheduleProvider",
5959
"when": "init",
6060
"function": "createWorkerPool",
61-
"gas": 3920681
62-
},
63-
{
64-
"spendBy": "scheduleProvider",
65-
"when": "init",
66-
"function": "updateWhitelist",
67-
"gas": 45207
61+
"gas": 2646746
6862
},
6963
{
7064
"spendBy": "resourceProvider",
7165
"when": "init",
7266
"function": "deposit",
73-
"gas": 80970
67+
"gas": 81065
7468
},
7569
{
7670
"spendBy": "resourceProvider",
7771
"when": "init",
7872
"function": "subscribeToPool",
79-
"gas": 138133
73+
"gas": 119303
8074
},
8175
{
8276
"spendBy": "appProvider",
8377
"when": "init",
8478
"function": "newApp",
85-
"gas": 2046769
79+
"gas": 504665
8680
},
8781
{
8882
"spendBy": "scheduleProvider",
8983
"when": "askWorkflow",
90-
"function": "emitMarketOrder",
91-
"gas": 238862
84+
"function": "createMarketOrder",
85+
"gas": 227570
9286
},
9387
{
9488
"spendBy": "iExecCloudUser",
9589
"when": "askWorkflow",
9690
"function": "deposit",
97-
"gas": 50970
91+
"gas": 51065
9892
},
9993
{
10094
"spendBy": "iExecCloudUser",
10195
"when": "askWorkflow",
102-
"function": "answerEmitWorkOrder",
103-
"gas": 1078478
96+
"function": "buyForWorkOrder",
97+
"gas": 907517
10498
},
10599
{
106100
"spendBy": "scheduleProvider",
107101
"when": "askWorkflow",
108-
"function": "callForContribution-1-worker",
109-
"gas": 62094
102+
"function": "allowWorkerToContribute-1-worker",
103+
"gas": 62718
110104
},
111105
{
112106
"spendBy": "resourceProvider",
113107
"when": "askWorkflow",
114108
"function": "deposit",
115-
"gas": 50970
109+
"gas": 51065
116110
},
117111
{
118112
"spendBy": "resourceProvider",
119113
"when": "askWorkflow",
120114
"function": "contribute",
121-
"gas": 160039
115+
"gas": 159569
122116
},
123117
{
124118
"spendBy": "scheduleProvider",
125119
"when": "askWorkflow",
126120
"function": "revealConsensus",
127-
"gas": 109398
121+
"gas": 118016
128122
},
129123
{
130124
"spendBy": "resourceProvider",
131125
"when": "askWorkflow",
132126
"function": "reveal",
133-
"gas": 57499
127+
"gas": 57560
134128
},
135129
{
136130
"spendBy": "scheduleProvider",
137131
"when": "askWorkflow",
138132
"function": "finalizeWork",
139-
"gas": 231322
133+
"gas": 224731
140134
}
141135
]
142136
}

metrics/asktransactionsCostTab.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,56 +3,56 @@
33
{
44
"spendBy": "scheduleProvider",
55
"when": "askWorkflow",
6-
"function": "emitMarketOrder",
7-
"gas": 238862
6+
"function": "createMarketOrder",
7+
"gas": 227570
88
},
99
{
1010
"spendBy": "iExecCloudUser",
1111
"when": "askWorkflow",
1212
"function": "deposit",
13-
"gas": 50970
13+
"gas": 51065
1414
},
1515
{
1616
"spendBy": "iExecCloudUser",
1717
"when": "askWorkflow",
18-
"function": "answerEmitWorkOrder",
19-
"gas": 1078478
18+
"function": "buyForWorkOrder",
19+
"gas": 907517
2020
},
2121
{
2222
"spendBy": "scheduleProvider",
2323
"when": "askWorkflow",
24-
"function": "callForContribution-1-worker",
25-
"gas": 62094
24+
"function": "allowWorkerToContribute-1-worker",
25+
"gas": 62718
2626
},
2727
{
2828
"spendBy": "resourceProvider",
2929
"when": "askWorkflow",
3030
"function": "deposit",
31-
"gas": 50970
31+
"gas": 51065
3232
},
3333
{
3434
"spendBy": "resourceProvider",
3535
"when": "askWorkflow",
3636
"function": "contribute",
37-
"gas": 160039
37+
"gas": 159569
3838
},
3939
{
4040
"spendBy": "scheduleProvider",
4141
"when": "askWorkflow",
4242
"function": "revealConsensus",
43-
"gas": 109398
43+
"gas": 118016
4444
},
4545
{
4646
"spendBy": "resourceProvider",
4747
"when": "askWorkflow",
4848
"function": "reveal",
49-
"gas": 57499
49+
"gas": 57560
5050
},
5151
{
5252
"spendBy": "scheduleProvider",
5353
"when": "askWorkflow",
5454
"function": "finalizeWork",
55-
"gas": 231322
55+
"gas": 224731
5656
}
5757
]
5858
}
-127 KB
Binary file not shown.
-144 KB
Binary file not shown.
-147 KB
Binary file not shown.

0 commit comments

Comments
 (0)