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
Batch option revisited #453
Comments
In my experience jsdom hasn't yet reached the point where it can handle this (yet). The user guide is out of date, the tool that it points to is actually used a fair bit and generally works. By default it times out at ten seconds; for a large document on an underpowered machine you might need more — if so you can set that on the command line. On my laptop it generates the document in five seconds, which isn't wonderful but isn't unusable either. @domenic, @tmpvar: This might be an interesting benchmark with which to investigate jsdom speed? I'm used to it being slower than phantomjs, but not by this much. |
Right, done is called at window.onload time, which I believe in browsers is before ReSpec runs. (If that's not the case then please file a bug.)
Yes, definitely! Summoning @Joris-van-der-Wel, our benchmarking expert. @rubys I assume you're on the latest version of jsdom and io.js? |
jsdom@5.4.3 CPU: Intel(R) Core(TM) i3 CPU 550 @ 3.20GHz |
Yeah, in that case it's just embarassing. I'd bet we're hitting some O(n^2) case and this won't be too hard to fix... @Joris-van-der-Wel has been working recently on exactly that kind of thing. |
On 27/06/2015 00:08 , Domenic Denicola wrote:
IIRC ReSpec should run at DOMContentLoaded (if not it's certainly a Robin Berjon - http://berjon.com/ - @robinberjon |
The test takes about 60 seconds for me
|
Snapshots are generated using Electron. It gets the job done nicely - even thought it's a bit huge. |
Issue #11 suggests phantomjs, was closed with an enigmatic comment indicating this was solved, yet the User's Guide suggests otherwise.
I'm suggesting that this be revisited given the current state of io.js in general, and jsdom in particular. Proof of concept code:
Notes:
id
values.The text was updated successfully, but these errors were encountered: