You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jmeter.apache.org by GitBox <gi...@apache.org> on 2021/11/01 19:02:01 UTC

[GitHub] [jmeter] vlsi edited a comment on pull request #674: WIP: Precise Thread Group

vlsi edited a comment on pull request #674:
URL: https://github.com/apache/jmeter/pull/674#issuecomment-956502849


   I don't know why one would write something like `${__javaScript(var r=[]; for(var i=0; i<5; i++){ r.push("rate\("+i+"/sec\) random_arrivals\("+i+" sec\) rate\("+i*5+"/sec\)"); } r.join(" pause(1 sec)\n"),)}`, but it works.
   
   The expression computes into the following schedule:
   
   ```
   rate(0/sec) random_arrivals(0 sec) rate(0/sec) pause(1 sec)
   rate(1/sec) random_arrivals(1 sec) rate(5/sec) pause(1 sec)
   rate(2/sec) random_arrivals(2 sec) rate(10/sec) pause(1 sec)
   rate(3/sec) random_arrivals(3 sec) rate(15/sec) pause(1 sec)
   rate(4/sec) random_arrivals(4 sec) rate(20/sec)
   ```
   
   <img width="812" alt="javascript load profile" src="https://user-images.githubusercontent.com/213894/139726121-d721aa2c-f124-4b7b-8032-88dd0f11d944.png">
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org