-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Headless Firefox #1
Comments
@so0k You can use a virtual display...you need to install Xvdf and the pyvirtualdisplay python module. Then create a virtual display with visible param set to 0...the firefox web driver will then start firefox using that framebuffer. It's not exactly headless, but it doesn't require X or anything. @nickboucart Thanks for this...I've been on the hunt for a better way to test AJAX-heavy single-page web apps and Locust has become my favorite tool for loadtesting. This was its only downfall. |
I do believe I used Xvdf, but it was just too slow to run a high load test |
@so0k I was actually curious about how adding the selenium jar and a browser to the mix was going to impact performance. The biggest reason why I chose Locust (over Jmeter, for example) was that I could perform a very intensive load test (borderline DOS attack) with just a quad-core laptop...and still be able to use it for other tasks. Do you recall the specs of your machine and the highest RPS you were able to generate? |
i was mainly using Kubernetes on AWS (running on m4.large on EC2 perhaps) -
so using Docker Containers...
FYI, to that purpose I also built a Helm chart for Locust to quickly run
distributed load tests
https://kubeapps.com/charts/stable/locust
…On Mon, Oct 16, 2017 at 8:41 PM, Brandon Parncutt ***@***.***> wrote:
@so0k <https://github.com/so0k> I was actually curious about how adding
the selenium jar and a browser to the mix was going to impact performance.
The biggest reason why I chose Locust (over Jmeter, for example) was that I
could perform a very intensive load test (borderline DOS attack) with just
a quad-core laptop...and still be able to use it for other tasks. Do you
recall the specs of your machine and the highest RPS you were able to
generate?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABrlJ86_5oRf01Ffnc7BVbEtJyAJsr6_ks5ss07cgaJpZM4JOMmj>
.
|
Great module, it worked perfectly with PhantomJS in docker containers.
Although, PhantomJS seemed quite slow, so I tried to use firefox... and it was a pain due to display issues.
I ended up copying the sourecode into my project folder and modifying the
locusts.py
as follows:I still have to find a way to stop the display when the locust client is killed...
But I wonder, how do you run the locust Firefox instance?
The text was updated successfully, but these errors were encountered: