Skip to content

Specjour slow when before(:all) is heavily used #50

@josephlord

Description

@josephlord

[Issue renamed for clarity and information of new readers - Was "Specjour slower than basic rspec on 4 core machine"]

It might well be something about my project set up but when I run specjour it is taking longer than normal rspec and it can take more than three times as long as for parallel_rspec on the same machine. This is pretty consistent although obviously there is some variation

Can you suggest what might be causing this and if there is anything I can do about it? Or any diagnosis I could provide.

$ time bundle exec rspec spec

Finished in 3 minutes 34.18 seconds
778 examples, 0 failures, 28 pending

real 3m48.092s
user 3m14.260s
sys 0m5.332s

$ time bundle exec specjour spec
Looking for listeners...
No listeners found on this machine, starting one...
Workers found: 4
jtl.me.uk (4)
Loading RSpec environment... completed in 14.104135037s

Finished in 4 minutes 49.54 seconds
778 examples, 0 failures, 28 pending

real 5m27.559s
user 13m58.396s
sys 0m22.745s

$ time bundle exec parallel_rspec spec
4 processes for 57 specs, ~ 14 specs per process

Finished in 24.74 seconds
211 examples, 0 failures, 12 pending

Finished in 27.67 seconds
220 examples, 0 failures, 2 pending

Finished in 52.31 seconds
161 examples, 0 failures, 1 pending

Finished in 1 minute 14.52 seconds
186 examples, 0 failures, 13 pending

778 examples, 0 failures, 28 pendings

Took 90.845140227 seconds

real 1m34.601s
user 3m38.938s
sys 0m6.104s

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions