This repository has been archived by the owner on Dec 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 536
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
38bc3ce
commit 70b0df9
Showing
9 changed files
with
493 additions
and
101 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package benchmark | ||
|
||
import ( | ||
"testing" | ||
) | ||
|
||
// The rootChildSendTx function executes test cases that measure transaction execution on both the root and child chains | ||
// To do this, it first calls RootChildSendTxSetUp to set up the testing environment, | ||
// which may include starting the cluster, deploying contracts, and building the test cases. | ||
// After building the test cases, rootChildSendTx returns them along with a cleanup function that should be called | ||
// after the test cases have been executed. The test cases are executed by the TxTestCasesExecutor. | ||
func Benchmark_RootChildSendTx(b *testing.B) { | ||
// set up environment, get test cases and clean up fn | ||
testCases, cleanUpFn := RootChildSendTxSetUp(b, "", "", "", true) | ||
defer cleanUpFn() | ||
|
||
// Loop over the test cases and measure the execution time of the transactions | ||
for _, testInput := range testCases { | ||
TxTestCasesExecutor(b, testInput) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.