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
# | |
# Open 10k concurrent WebSocket connections with the client and server running | |
# in the same process and perform 10k WebSocket message roundtrips | |
# | |
# Tested on OS X 10.8.3 (MacBook Air) with Perl 5.16.3 and EV 4.15 (kqueue) | |
# | |
# 632.3MB memory usage, 0% CPU usage once roundtrips are finished after 36s | |
# (with all 20k sockets still open) | |
# | |
# Get the latest version of Mojolicious from http://github.com/kraih/mojo |