From b3eb0cdf39d49260db9690d9f15055c246c3906e Mon Sep 17 00:00:00 2001 From: Ragot Geoffrey Date: Wed, 15 Jan 2025 14:39:50 +0100 Subject: [PATCH] feat: add benchmarking script (#652) --- test/performance/scripts/any_to_bank.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test/performance/scripts/any_to_bank.js diff --git a/test/performance/scripts/any_to_bank.js b/test/performance/scripts/any_to_bank.js new file mode 100644 index 0000000000..fa7066b333 --- /dev/null +++ b/test/performance/scripts/any_to_bank.js @@ -0,0 +1,21 @@ +function next() { + return [ + { + action: 'CREATE_TRANSACTION', + data: { + script: { + plain: `vars { + account $source + } + send [USD/2 100] ( + source = $source allowing unbounded overdraft + destination = @bank + )`, + vars: { + source: "src:" + uuid() + } + } + } + } + ] +} \ No newline at end of file