Skip to content

Instantly share code, notes, and snippets.

@ryankennedy
ryankennedy / ab.log
Created October 23, 2015 05:28
ApacheBench SSL error
ab -c 1 -n 1 https://hw9j2li3ma.execute-api.us-east-1.amazonaws.com/prod/NodeSayHello
This is ApacheBench, Version 2.3 <$Revision: 1663405 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking hw9j2li3ma.execute-api.us-east-1.amazonaws.com (be patient)...SSL handshake failed (1).
10445:error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure:/BuildRoot/Library/Caches/com.apple.xbs/Sources/OpenSSL098/OpenSSL098-59/src/ssl/s23_clnt.c:593:
..done
@ryankennedy
ryankennedy / json_bench.sh
Created April 22, 2016 05:16
Script that replicates the traffic being generated by the TechEmpower JSON serving benchmark.
#!/bin/sh
HOST=localhost
PORT=9090
URL=/json
CONTENT_TYPE_HEADER="application/json,text/html;q=0.9,application/xhtml+xml;q=0.9,application/xml;q=0.8,*/*;q=0.7"
CONNECTION_HEADER="Connection: keep-alive"
# Parameters:
@ryankennedy
ryankennedy / hw-base.txt
Created April 22, 2016 06:16
Benchmark results comparing the baseline TechEmpower Dropwizard code with a version packing an optimized Guava.
===============
Primer Requests
===============
Running 5s test @ http://localhost:9090/json
8 threads and 8 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 11.61ms 28.59ms 287.04ms 96.75%
Req/Sec 169.75 52.18 300.00 69.27%
Latency Distribution
50% 7.11ms
@ryankennedy
ryankennedy / proto_parse.feature
Last active September 6, 2017 05:19
Cucumber definition for a simple Protocol Buffer parsing test
Feature: Parsing Protocol Buffer schemas
Scenario: Parsing a valid Protocol Buffer schema
Given a Protocol Buffer schema named my_message.proto with body
"""
syntax = "proto3";
message MyMessage {
string message_content = 1;
}