Skip to content

Instantly share code, notes, and snippets.

@akarelas
akarelas / c10k.pl
Created October 31, 2013 16:14 — forked from kraih/c10k.pl
#
# 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