File: no_gc_with_each.rb

package info (click to toggle)
ruby-parallel 1.27.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 476 kB
  • sloc: ruby: 1,998; makefile: 4
file content (6 lines) | stat: -rw-r--r-- 132 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
# frozen_string_literal: true
require './spec/cases/helper'

Parallel.each(1..1000, in_threads: 2) do |_i|
  "xxxx" * 1_000_000
end