Created
September 7, 2016 13:53
-
-
Save madis/cbe9705b22bf0b0f14d36e3f43e172b8 to your computer and use it in GitHub Desktop.
Testing ruby loading in multiple threads
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'thwait' | |
$LOAD_PATH << '/Users/madisnoemme/code/etventure/rbn-be-api' | |
threads = 10000.times.map { | |
print "." | |
Thread.new { | |
require_relative './rbn/service/xml/mapping' | |
require_relative './rbn/service/xml/mappings' | |
} | |
} | |
puts "Waiting for #{threads.count} threads" | |
ThreadsWait.all_waits(threads) | |
puts "Done!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment