Skip to content

Instantly share code, notes, and snippets.

View brunsgaard's full-sized avatar

Jonas Brunsgaard brunsgaard

View GitHub Profile
@brunsgaard
brunsgaard / orderedWorkpool.go
Created August 16, 2022 16:13
Ordered Workpool
package concurrentprotojson
import (
"container/heap"
"sync"
"github.com/twmb/franz-go/pkg/kgo"
"google.golang.org/protobuf/encoding/protojson"
"google.golang.org/protobuf/proto"
"google.golang.org/protobuf/reflect/protoreflect"
print("hello world")
@brunsgaard
brunsgaard / beta_test_rand_mix_rw
Last active January 7, 2020 12:07
Checking IOPS with fio
test_rand_mix_rw: (groupid=0, jobs=1): err= 0: pid=29890: Tue Jan 7 12:33:06 2020
read: IOPS=57.5k, BW=449MiB/s (471MB/s)(2046MiB/4557msec)
slat (nsec): min=1550, max=48849, avg=2505.48, stdev=1810.42
clat (usec): min=70, max=10830, avg=496.39, stdev=482.92
lat (usec): min=73, max=10832, avg=498.94, stdev=482.93
clat percentiles (usec):
| 1.00th=[ 88], 5.00th=[ 113], 10.00th=[ 137], 20.00th=[ 176],
| 30.00th=[ 215], 40.00th=[ 258], 50.00th=[ 318], 60.00th=[ 400],
| 70.00th=[ 537], 80.00th=[ 766], 90.00th=[ 1123], 95.00th=[ 1385],
| 99.00th=[ 2278], 99.50th=[ 2868], 99.90th=[ 4080], 99.95th=[ 4555],
import threading
import boto3
import flask
local = threading.local()
class S3:
```python
import threading
import boto3
import flask
local = threading.local()
```python
import threading
import boto3
import flask
local = threading.local()
```python
import threading
import boto3
import flask
local = threading.local()
```python
import threading
import boto3
import flask
local = threading.local()
```python
import threading
import boto3
import flask
local = threading.local()
```python
import threading
import boto3
import flask
local = threading.local()