• Intel Xeon E5-2680v2, Ivy Bridge, 20C/40T

    32G DRAM

    5.10.0-3-amd64 #1 SMP Debian 5.10.12-1 (2021-01-30) x86_64 GNU/Linux

    Ruby 3.0.0

    正常运行

    require 'digest/md5'
    e = (1..1_000_000).to_a
    arr = [e,e,e,e]
    
    result = arr.map { |sub_arr|
      Ractor.new(sub_arr) do |sub_arr|
        sub_arr.map {
          Digest::MD5.hexdigest(rand.to_s)
        }
      end
    }.map{|r| r.take}.reduce(:+)
    

    heap trace