Skip to content

Instantly share code, notes, and snippets.

View louiscryan's full-sized avatar

Louis Ryan louiscryan

View GitHub Profile
@louiscryan
louiscryan / README
Created December 14, 2015 21:51
GRPC - Curl, HTTP/1.1 & nghttp misc
# Build the GRPC Java server which is used for interop testing.
# Interface defined here
# https://github.com/grpc/grpc-java/blob/master/interop-testing/src/main/proto/io/grpc/testing/integration/test.proto
./gradlew :grpc-interop-testing:installDist
# Run it with TLS turned on so ALPN is enabled. Uses a dummy cert
./interop-testing/build/install/grpc-interop-testing/bin/test-server --port=8080 --use_tls=true
# Run the awesome nghttp2 as a proxy in front of it.
# See https://nghttp2.org/documentation/package_README.html#building-from-git
@louiscryan
louiscryan / gist:c5997da99c51b5893a00
Last active August 29, 2015 14:19
Netty buffer allocator benchamrk
ByteBufAllocatorBenchmark.defaultPooledDirectAllocAndFree 00000 thrpt 20 4532752.716 ± 197607.693 ops/s
ByteBufAllocatorBenchmark.defaultPooledDirectAllocAndFree 00256 thrpt 20 4801857.328 ± 206334.965 ops/s
ByteBufAllocatorBenchmark.defaultPooledDirectAllocAndFree 01024 thrpt 20 4571813.624 ± 84182.814 ops/s
ByteBufAllocatorBenchmark.defaultPooledDirectAllocAndFree 04096 thrpt 20 4393213.989 ± 105106.286 ops/s
ByteBufAllocatorBenchmark.defaultPooledDirectAllocAndFree 16384 thrpt 20 4830958.459 ± 92695.134 ops/s
ByteBufAllocatorBenchmark.defaultPooledDirectAllocAndFree 65536 thrpt 20 2409135.087 ± 136903.037 ops/s
ByteBufAllocatorBenchmark.defaultPooledHeapAllocAndFree 00000 thrpt 20 4531115.142 ± 192603.016 ops/s
ByteBufAllocatorBenchmark.defaultPooledHeapAllocAndFree 00256 thrpt 20 4780697.106 ± 69302.503 ops/s
ByteBufAllocatorBenchmark.defaultPooledHeapAllocAndFree 01024 thrpt 20 4632958.002 ± 263569.276 ops/s
ByteBufAllocator