-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Faster implementation of monitor than standard library #2645
Comments
Why this issue on this repository? |
oh… I made a mistake… transfered to fluent/fluentd. |
Here is my benchmark result of #2561
|
For my understanding, this gem is a faster version of the exising require 'benchmark/ips'
# require 'ext_monitor'
mo = Monitor.new
mu = Mutex.new
p "Ruby #{RUBY_VERSION}"
Benchmark.ips do |x|
x.report("monitor") do
mo.synchronize {}
end
x.report("mutex") do
mu.synchronize {}
end
end with ext_monitor
without ext_monitor (commented out)
|
Yes, but the problem is ruby 2.6.4 and later has slower Monitor. |
ah, my bad. You already compared them... |
Thank you for testing. I found a bug and fixed and released v0.1.1: https://rubygems.org/gems/ext_monitor/versions/0.1.1 |
Great 👏 thanks. with ext_monitor (2x faster)
without ext_monitor
with ext_monitor(10x faster)
without ext_monitor
|
I'll try https://github.com/nurse/ext_monitor
cc. @nurse
The text was updated successfully, but these errors were encountered: