-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[executor-benchmark] Simple script loading benchmark (#15098)
- Loading branch information
1 parent
d79e765
commit ab2bd8c
Showing
6 changed files
with
69 additions
and
6 deletions.
There are no files selected for viewing
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
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
17 changes: 17 additions & 0 deletions
17
testsuite/module-publish/src/packages/simple/scripts/main.move
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,17 @@ | ||
script { | ||
// Note: this constant can be replaced in compiled script to make it hash to a different value. | ||
const SENDER: address = @0x1; | ||
|
||
fun main(sender: &signer) { | ||
// The idea is to to ensure that this script takes some time to be deserialized and verified, but the actual | ||
// execution time is small (no-op). | ||
if (false) { | ||
0xABCD::simple::loop_nop(sender, 0); | ||
0xABCD::simple::loop_arithmetic(sender, 0); | ||
0xABCD::simple::loop_bcs(sender, 0, 0); | ||
if (false) { | ||
while (true) {} | ||
} | ||
} | ||
} | ||
} |
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