distraction mode
fullscreen mode
autoscroll from/to source
termial settings -> don't override shortcuts
presentation asist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
. | |
├── books | |
│ ├── handlers.go | |
│ └── models.go | |
├── config | |
│ └── db.go | |
└── main.go |
- I'm comparing the speed of inserting UUIDs into columns which are indexed with btree vs hash
- Want to ensure that I'm measuring both insert queries at their best performance
- Profiled each of them to check whether there is interference by server misconfiguration
Both were sampled with perf record -F 99 -u postgres -g --call-graph dwarf -- sleep 180
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Server-side I/O Performance in Python | |
Based on the article and discussion at: | |
https://www.toptal.com/back-end/server-side-io-performance-node-php-java-go | |
The code was posted at: | |
https://peabody.io/post/server-env-benchmarks/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# From my webinar for Sysdig - Exploring Kubernetes 1.18 | |
# Create A KinD or k3s cluster with no IngressController | |
# Run `arkade install ingress-nginx` to add IngressNginx to the cluster as your IngressController | |
# Save and apply all the Kubernetes YAML files below | |
# Forward the IngressController | |
# kubectl port-forward ingress-nginx-controller 8080:80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package timestamp | |
import ( | |
"database/sql/driver" | |
"fmt" | |
"strings" | |
"time" | |
"github.com/araddon/dateparse" | |
"github.com/globalsign/mgo/bson" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Inserting | |
user system total real | |
Numeric 0.070000 0.010000 0.080000 ( 0.586738) | |
UUID 0.070000 0.020000 0.090000 ( 3.101085) | |
Retrieving by id | |
user system total real | |
Numeric 0.810000 0.980000 1.790000 ( 6.831551) | |
UUID 0.830000 0.990000 1.820000 ( 6.981944) |