Skip to content

Instantly share code, notes, and snippets.

Latency Comparison Numbers
--------------------------
L1 cache reference 0.5 ns 32 Kb for data, 32kb for code on Inte (per core)
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache 256 Kb on Intel (per core)
L3 cache reference 15 ns 4-30 Mb on Intel (6Mb on i5 5470), shared between all cores
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns
Send 1K bytes over 1 Gbps network 10,000 ns 0.01 ms
@bartosz-bilicki
bartosz-bilicki / True Trello Printer
Created July 5, 2016 12:33 — forked from mathiasrw/True Trello Printer
Ever wanted to print your Trello board? Export as JSON and paste it into the code.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>True Trello Printer</title>
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
<style>
body{margin:15%;}
.panel-body{
@bartosz-bilicki
bartosz-bilicki / Mediakeys.ahk
Created December 2, 2019 08:24 — forked from mistic100/Mediakeys.ahk
Media keys shortcuts for AutoHotkey
; AutoHotkey Media Keys
^!Space::Send {Media_Play_Pause}
^!Left::Send {Media_Prev}
^!Right::Send {Media_Next}
^!NumpadMult::Send {Volume_Mute}
^!NumpadAdd::Send {Volume_Up}
^!NumpadSub::Send {Volume_Down}