forked from socky/socky-server-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add test for connecting to presence channel
- Loading branch information
1 parent
7e26555
commit 1ac36cf
Showing
4 changed files
with
32 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
require 'spec_helper' | ||
require 'performance_helper' | ||
require 'benchmark' | ||
|
||
describe 'Connecting Performance' do | ||
|
||
it "For x listeners" do | ||
[1, 10, 100].each do |count| | ||
results = [] | ||
5.times do | ||
@application = Socky::Server::Application.new('test_application', 'test_secret') | ||
@channel = "presence" | ||
results << Benchmark.realtime {count.times { add_listener }} | ||
clean_application | ||
end | ||
print_result count, results | ||
end | ||
end | ||
|
||
end | ||
|
||
|
||
|
||
|
||
|
||
|
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
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
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