Skip to content

Instantly share code, notes, and snippets.

View edtz's full-sized avatar
⚛️
I know how to react

edtz

⚛️
I know how to react
View GitHub Profile
@eshelman
eshelman / latency.txt
Last active April 21, 2024 07:13 — forked from jboner/latency.txt
HPC-oriented Latency Numbers Every Programmer Should Know
Latency Comparison Numbers
--------------------------
L1 cache reference/hit 1.5 ns 4 cycles
Floating-point add/mult/FMA operation 1.5 ns 4 cycles
L2 cache reference/hit 5 ns 12 ~ 17 cycles
Branch mispredict 6 ns 15 ~ 20 cycles
L3 cache hit (unshared cache line) 16 ns 42 cycles
L3 cache hit (shared line in another core) 25 ns 65 cycles
Mutex lock/unlock 25 ns
L3 cache hit (modified in another core) 29 ns 75 cycles
@mojoaxel
mojoaxel / font-boosting.css
Last active July 1, 2019 18:23 — forked from sethlilly/font-boosting.css
Disable font boosting on mobile browsers
/* disable font boosting on mobile browsers */
body * {
max-height: 1000000em; /* Chrome for Android */
-moz-text-size-adjust: none; /* Firefox Mobile */
}