From 174be71aa3b8e8e56f6d9969c9d9999a007aecf3 Mon Sep 17 00:00:00 2001 From: Alex 'mcmonkey' Goodwin Date: Fri, 20 Sep 2019 10:11:18 -0700 Subject: [PATCH] update the testload sample script a bit --- plugin/src/main/resources/util.dsc | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/plugin/src/main/resources/util.dsc b/plugin/src/main/resources/util.dsc index 47cc8d5cc9..0406de10ce 100644 --- a/plugin/src/main/resources/util.dsc +++ b/plugin/src/main/resources/util.dsc @@ -13,15 +13,15 @@ BUILTIN_Load_Tester: script: # double check the permission - - if !>> queue clear + - if !>>: + - stop - - define n + - define n - # if no number specified, stress test with 100 queues - - if <[n]> == null { - - narrate 'Invalid integer, assuming 100.' - - define n 100 - } + # if no number specified, stress test with 1000 queues + - if <[n]> == null: + - narrate 'Invalid integer, assuming 1000.' + - define n 1000 # initialize the progress flag # this will count up each time a queue was completed @@ -32,18 +32,16 @@ BUILTIN_Load_Tester: # repeat the run command # each run will create a new queue, and increase the counter - - repeat <[n]> { + - repeat <[n]>: - run locally test instantly - } # ...and end time, to compare against the start time - define end_time - - narrate 'Completed of <[n]> total queues in <[end_time].sub_int[<[start_time]>].div[1000]> seconds.' + - narrate 'Completed of <[n]> total queues in <[end_time].sub_int[<[start_time]>].div[1000]> seconds.' # cleanup - flag server stress_test_counter:! - test: - flag server stress_test_counter:++