Skip to content

Instantly share code, notes, and snippets.

View martin-g's full-sized avatar
🏠
Working from home

Martin Grigorov martin-g

🏠
Working from home
View GitHub Profile
Running 30s test @ https://192.168.0.232:8080
 8 threads and 96 connections
 Thread Stats Avg Stdev Max +/- Stdev
 Latency 7.92ms 12.50ms 248.52ms 91.18%
 Req/Sec 2.42k 338.67 4.34k 80.88%
 578210 requests in 30.08s, 70.58MB read
Requests/sec: 19220.81
Transfer/sec: 2.35MB
Running 30s test @ http://192.168.0.206:8080
 8 threads and 96 connections
 Thread Stats Avg Stdev Max +/- Stdev
 Latency 3.32ms 4.46ms 75.42ms 94.58%
 Req/Sec 4.71k 538.41 8.84k 82.41%
 1127664 requests in 30.10s, 137.65MB read
Requests/sec: 37464.85
Transfer/sec: 4.57MB
Running 30s test @ http://192.168.0.232:8080
 8 threads and 96 connections
 Thread Stats Avg Stdev Max +/- Stdev
 Latency 6.67ms 8.82ms 196.74ms 89.85%
 Req/Sec 2.60k 337.06 5.79k 75.79%
 621350 requests in 30.09s, 75.85MB read
Requests/sec: 20651.69
Transfer/sec: 2.52MB
package main
// run with: env PORT=8081 go run http-server.go
import (
"fmt"
"log"
"net/http"
"os"
)
global
log stdout format raw local0 err
# nbproc 8
nbthread 32 # don't set this manually. See Update 4 below
cpu-map 1/all 0-7 # don't set this manually. See Update 4 below
tune.ssl.default-dh-param 2048
tune.ssl.capture-cipherlist-size 1
ssl-server-verify none
maxconn 32748
daemon
HA-Proxy version 2.3-dev0 2020/07/07 - https://haproxy.org/
Status: development branch - not safe for use in production.
Known bugs: https://github.com/haproxy/haproxy/issues?q=is:issue+is:open
Running on: Linux 5.4.0-40-generic #44-Ubuntu SMP Mon Jun 22 23:59:48 UTC 2020 aarch64
Build options :
TARGET = linux-glibc
CPU = generic
CC = clang-9
CFLAGS = -O2 -Wall -Wextra -Wdeclaration-after-statement -fwrapv -Wno-address-of-packed-member -Wno-unused-label -Wno-sign-compare -Wno-unused-parameter -Wno-missing-field-initializers -Wno-string-plus-int -Wtype-limits -Wshift-negative-value -Wnull-dereference -Werror
OPTIONS = USE_PCRE=1 USE_PCRE_JIT=1 USE_OPENSSL=1 USE_LUA=1 USE_ZLIB=1 USE_DEVICEATLAS=1 USE_51DEGREES=1 USE_WURFL=1 USE_SYSTEMD=1
================================ Sysbench ======================================
sudo apt install sysbench
Summary
==============================================================================================================================
| CPU | MEMORY SEQ | Memory RND | Threads | Mutex | File IO |
| events/sec | writes/sec | writes/sec | # of events | time for 8 events | |
------------------------------------------------------------------------------------------------------------------------------
@martin-g
martin-g / Scalac Benchmark x86_64
Created June 24, 2020 08:45
scala/compiler-benchmark> sbt 'set scalaVersion in compilation := "2.13.2"' 'hot -psource=scalap'
[info] Benchmark (corpusPath) (corpusVersion) (extraArgs) (resident) (scalaVersion) (source) Mode Cnt Score Error Units
[info] HotScalacBenchmark.compile ../corpus latest false 2.13.2 scalap sample 418 749.017 ± 2.363 ms/op
[info] HotScalacBenchmark.compile:compile·p0.00 ../corpus latest false 2.13.2 scalap sample 715.129 ms/op
[info] HotScalacBenchmark.compile:compile·p0.50 ../corpus latest false 2.13.2 scalap sample 748.683 ms/op
[info] HotScalacBenchmark.compile:compile·p0.90 ../corpus latest false 2.13.2 scalap sample 765.460 ms/op
[info] HotScalacBenchmark.compile:compile·p0.95 ../corpus latest false 2.13.2 scalap sample 774.898 ms/op
[info] Hot
@martin-g
martin-g / Scalac Benchmark aarch64
Created June 24, 2020 08:44
scala/compiler-benchmark> sbt 'set scalaVersion in compilation := "2.13.2"' 'hot -psource=scalap'
[info] Benchmark (corpusPath) (corpusVersion) (extraArgs) (resident) (scalaVersion) (source) Mode Cnt Score Error Units
[info] HotScalacBenchmark.compile ../corpus latest false 2.13.2 scalap sample 240 1364.687 ± 4.602 ms/op
[info] HotScalacBenchmark.compile:compile·p0.00 ../corpus latest false 2.13.2 scalap sample 1306.526 ms/op
[info] HotScalacBenchmark.compile:compile·p0.50 ../corpus latest false 2.13.2 scalap sample 1365.246 ms/op
[info] HotScalacBenchmark.compile:compile·p0.90 ../corpus latest false 2.13.2 scalap sample 1392.509 ms/op
[info] HotScalacBenchmark.compile:compile·p0.95 ../corpus latest false 2.13.2 scalap sample 1400.793 ms/op
[inf
@martin-g
martin-g / tomcat-9.x-gc-lock-free.txt
Last active June 5, 2020 12:44
The GC logs while load testing Tomcat Servlet with wrk (wrk -c96 -t8 -d60s host:port). JDK 1.8.0_252, G1GC
[0.003s][info][gc,heap] Heap region size: 2M
[0.003s][info][gc,heap,coops] Heap address: 0x0000000705600000, size: 4010 MB, Compressed Oops mode: Zero based, Oop shift amount: 3
[0.005s][info][gc ] Using G1
[0.034s][info][gc ] Periodic GC disabled
[0.539s][info][gc,start ] GC(0) Pause Young (Normal) (G1 Evacuation Pause)
[0.539s][info][gc,task ] GC(0) Using 6 workers of 8 for evacuation
[0.543s][info][gc,phases ] GC(0) Pre Evacuate Collection Set: 0.1ms
[0.543s][info][gc,phases ] GC(0) Merge Heap Roots: 0.0ms
[0.543s][info][gc,phases ] GC(0) Evacuate Collection Set: 2.6ms
[0.543s][info][gc,phases ] GC(0) Post Evacuate Collection Set: 0.4ms