Skip to content

Instantly share code, notes, and snippets.

View CullenShane's full-sized avatar

Cullen Murphy CullenShane

View GitHub Profile
@CullenShane
CullenShane / Dockerfile
Created July 13, 2018 16:29
Jank `HTTP` client for loading servers and measuring connection time.
FROM scratch
ADD syn-client /syn-client
ENV CONNECTION_DELAY "10"
ENV CONCURRENT_CONNECTIONS "200"
ENV SERVER "localhost:5000"
CMD ["/syn-client"]
@CullenShane
CullenShane / Dockerfile
Last active July 13, 2018 16:38
Simple "Hello World" HTTP server
FROM scratch
ADD http-server /http-server
EXPOSE 5000/tcp
CMD ["/http-server"]
@CullenShane
CullenShane / README.md
Last active February 5, 2018 17:55
High Throughput Go Wakka generator

High Throughput Wakka Generator

This is a simple program which is setup to serve as many Wakkas as possible.

Client

If you run the client, you can tune the number of goroutine on the client to make it go faster. If you run out of open files, run ulimit -n to find out your current number of openable files, and then double it with ulimit -n <n>. Repeat this until you stop running out of files. If you change the program so that the client closes the connection, you run out of sockets instead, because the sockets stick around in TIME_WAIT state instead of being closed instantly. If you are at a loss for sockets, ensure your clients aren't closing the connection first.

Server

Keybase proof

I hereby claim:

  • I am cullenshane on github.
  • I am cullenshane (https://keybase.io/cullenshane) on keybase.
  • I have a public key ASCd8bSV_i-I9uhQQfb4AHL_udwyZCNqa2B4bUyEp36Pbwo

To claim this, I am signing this object:

@CullenShane
CullenShane / README.md
Created April 7, 2015 22:22
Fix angular-placeholder in IE9 when the input is required.