grosser / parallel

Ruby: parallel processing made simple and fast
MIT License
4.16k stars 254 forks source link

Added travis testing of experimental Ruby 2.6+ JIT #258

Closed duffyjp closed 5 years ago

duffyjp commented 5 years ago

I added RUBYOPT="--jit" to the build matrix, but explicitly excluded it from everything but 2.6.

Here's what a build looks like:

Travis

The JIT job doesn't pass and takes a long time, but it's still experimental. I set it as an allowed failure.

I've seen 200% speed improvements in single threaded code with --jit but it Segfaults using Parallel. If I can track down the reasons I'll add tests. It's exciting though, and I think it'd would be good to have on your radar for Parallel.

duffyjp commented 5 years ago

I probably shouldn't have at the same time, but Travis complained, so I updated from precise to xenial too. Doing that caused all builds to fail with this:

Failures:
  1) Parallel.in_processes does not open unnecessary pipes
     Failure/Error: (max_pipes - open_pipes).should < 400

       expected: < 400
            got:   1500
     # ./spec/parallel_spec.rb:191:in `block (3 levels) in <top (required)>'
     # ./spec/spec_helper.rb:8:in `block (2 levels) in <top (required)>'