CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Tue, 05 Aug 2025 20:30:00 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20100411024834
location: https://web.archive.org/web/20100411024834/https://github.com/edavis10/parallel_test
server-timing: captures_list;dur=1.375865, exclusion.robots;dur=0.053752, exclusion.robots.policy;dur=0.032178, esindex;dur=0.023166, cdx.remote;dur=85.229396, LoadShardBlock;dur=540.898718, PetaboxLoader3.datanode;dur=143.488515, PetaboxLoader3.resolve;dur=324.892202
x-app-server: wwwb-app201
x-ts: 302
x-tr: 667
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app201; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Tue, 05 Aug 2025 20:30:02 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Sun, 11 Apr 2010 02:48:34 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "7c1f967ac45290dcc489a95351d264d9"
x-archive-orig-x-runtime: 201ms
x-archive-orig-content-length: 21216
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sun, 11 Apr 2010 02:48:34 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Sun, 11 Apr 2010 02:48:34 GMT", ; rel="memento"; datetime="Sun, 11 Apr 2010 02:48:34 GMT", ; rel="next memento"; datetime="Sun, 10 Jun 2018 23:34:07 GMT", ; rel="last memento"; datetime="Wed, 25 Nov 2020 00:08:36 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_15_20100411023527_crawl102-c/52_15_20100411024808_crawl101.arc.gz
server-timing: captures_list;dur=0.989356, exclusion.robots;dur=0.047388, exclusion.robots.policy;dur=0.027784, esindex;dur=0.031718, cdx.remote;dur=58.643310, LoadShardBlock;dur=333.394832, PetaboxLoader3.datanode;dur=168.072616, PetaboxLoader3.resolve;dur=887.583372, load_resource;dur=762.538424
x-app-server: wwwb-app201
x-ts: 200
x-tr: 1228
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
edavis10's parallel_test at master - GitHub
edavis10 / parallel_test forked from jasonm/parallel_test
- Source
- Commits
- Network (2)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
click here to add a description
click here to add a homepage
name | age | message | |
---|---|---|---|
![]() |
.gitignore | Mon Jun 22 13:30:43 -0700 2009 | Adding a line to README crediting https://github... [Jason Morrison] |
![]() |
README.markdown | Loading commit data... ![]() |
|
![]() |
Rakefile | ||
![]() |
lib/ | ||
![]() |
spec/ | ||
![]() |
tasks/ |
README.markdown
Rake tasks to run tests in parallel, to use multiple CPUs and speedup test runtime.
Based heavily on on https://github.com/grosser/parallel_specs/; i.e. this is a copy of parallel_spec with a handful of changes to run test/*/_test.rb instead of specs.
Setup
script/plugin install git://github.com/jasonm/parallel_test.git
Copy your test environment inside config/database.yml
once for every cpu you got ('test'+number).
test:
adapter: mysql
database: xxx_test
username: root
test2:
adapter: mysql
database: xxx_test2
username: root
For each environment, create the databases
mysql -u root -> create database xxx_test2;
Run like hell :D
(Make sure your `test/test_helper.rb` does not set `ENV['RAILS_ENV']` to 'test')
rake test:parallel:prepare[2] #db:reset for each env
rake test:parallel[1] --> 86 seconds
rake test:parallel --> 47 seconds (default = 2)
rake test:parallel[4] --> 26 seconds
...
Example output
running tests in 2 processes
93 tests per process
starting process 1
starting process 2
... test output ...
Took 47.319378 seconds
TODO
- find out how many CPUs the user has
- sync the output, so that results do not appear all at once
- grab the 'xxx examples ..' line and display them at the bottom
- find a less hacky approach (without manual creation so many envs)
Author
inspired by pivotal labs
Michael Grosser
grosser.michael@gmail.com
Hereby placed under public domain, do what you want, just do not hold me accountable...