Question Authors' Forum

Script to do an stress test of JOBE?

 
Picture of Sergi García
Script to do an stress test of JOBE?
by Sergi García - Wednesday, 29 November 2017, 10:48 PM
 
Hi. I want to ask a question.
Does anyone has an script to do an "stress test" of JOBE in our server?
My idea is to test things like how many Java submissions can be done in a time or something like that.

Regards, Sergi.


Picture of Richard Lobb
Re: Script to do an stress test of JOBE?
by Richard Lobb - Thursday, 30 November 2017, 10:25 AM
 

There's a testsubmit.py script included with Jobe. You could tweak that to measure the throughput rate when repeatedly submitting a simple Java program. Alternatively, there's a Python2 script loadtesting2.py on the CodeRunner repository (https://github.com/trampgeek/moodle-qtype_coderunner/blob/master/loadtesting2.py) which simulates a group of students continually submitting answers to a set of Moodle questions. The latter gives you a much better true estimate of load handling, but you do need to set up a set of test students and a test of test questions on the Moodle server in order to use it. I usually run with 20 students continually submitting code, but I haven't done it with Java as I don't teach that anymore.

Richard

Picture of Sergi García
Re: Script to do an stress test of JOBE?
by Sergi García - Tuesday, 5 December 2017, 7:04 AM
 
Thanks for your answer Richard!!
I will try to configure both python test :)

Regards, Sergi.