YUKI Hiroshi
null+****@clear*****
Wed Jan 8 11:18:20 JST 2014
YUKI Hiroshi 2014-01-08 11:18:20 +0900 (Wed, 08 Jan 2014) New Revision: e6721fef2aa3c60cf7621fbd07e386de6573e98e https://github.com/droonga/fluent-plugin-droonga/commit/e6721fef2aa3c60cf7621fbd07e386de6573e98e Message: Use "publish" instead of "notification" Modified files: benchmark/watch/benchmark-notify.rb Modified: benchmark/watch/benchmark-notify.rb (+6 -6) =================================================================== --- benchmark/watch/benchmark-notify.rb 2014-01-08 11:15:32 +0900 (3b03dfb) +++ benchmark/watch/benchmark-notify.rb 2014-01-08 11:18:20 +0900 (99c18f4) @@ -54,11 +54,11 @@ class NotifyBenchmark do_feed("#{WATCHING_KEYWORD} #{index}") end - notifications = [] - while notifications.size != @n_times - notifications << @receiver.new_message + published_messages = [] + while published_messages.size != @n_times + published_messages << @receiver.new_message end - notifications + published_messages end def add_subscribers(n_subscribers) @@ -118,8 +118,8 @@ options[:n_steps].times do |try_count| percentage = nil result = Benchmark.bm do |benchmark| benchmark.report(label) do - sent_notifications = notify_benchmark.run - percentage = sent_notifications.size.to_f / options[:n_times] * 100 + published_messages = notify_benchmark.run + percentage = published_messages.size.to_f / options[:n_times] * 100 end end puts "=> #{percentage} % feeds are notified" -------------- next part -------------- HTML����������������������������... Download