start new:
tmux
start new with session name:
tmux new -s myname
| // sleepsort.js - Sort integers from the commandline in a very ridiculous way: leveraging timeouts :P | |
| function sleepSort(array, callback) { | |
| var sortedCount = 0, | |
| i, len; | |
| for ( i = 0, len = array.length; i < len; ++i ) { | |
| setTimeout((function(j){ | |
| return function() { | |
| console.log(array[j]); | |
| ++sortedCount; |
| { | |
| "APIGatewayServiceRolePolicy": { | |
| "Arn": "arn:aws:iam::aws:policy/aws-service-role/APIGatewayServiceRolePolicy", | |
| "AttachmentCount": 0, | |
| "CreateDate": "2019-10-22T18:22:01+00:00", | |
| "DefaultVersionId": "v6", | |
| "Document": { | |
| "Statement": [ | |
| { |
| Operation |
|
|
|
notable | 1Bx |
|---|---|---|---|---|---|
| L1 cache reference | |||||
| Branch mispredict | |||||
| L2 cache reference | 14x L1 cache | ||||
| Mutex lock/unlock | |||||
| Main Memory reference | 20x L2 cache, 200x L1 cache | ||||
| Compress 1K bytes with Zippy |