Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| class machine(object): | |
| def __init__(self): | |
| self.inscount = 0 | |
| self.storage = [] | |
| # CMP: instype 0, k1=pos, k2=byte, k3=switch1(-1), k4=switch2(0), k5=switch3(1) | |
| # KV: instype 1, key, value | |
| def add_inst(self, instype, k1=-1, k2=-1, k3=-1, k4=-1, k5=-1): | |
| if instype == 0: | |
| if k1 < 0: raise |
| https://github.com/BohuTANG/ioarena | |
| Model Name: MacBook Air | |
| Model Identifier: MacBookAir7,2 | |
| Processor Name: Intel Core i5 | |
| Memory: 8 GB | |
| ==================================1) small kv tests================================= | |
| number of operations 20,000,000 | |
| operations set |
People
:bowtie: |
π :smile: |
π :laughing: |
|---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
| > ~/tcp_redis_monitor.py 6379 | |
| Timestamp Nb TX bytes RX bytes TX RMA RX RMA | |
| 1333983822.943 1 0 0 0.000 0.000 | |
| 1333983823.193 1 0 0 0.000 0.000 | |
| 1333983824.194 1 0 0 0.000 0.000 | |
| 1333983825.195 1 0 0 0.000 0.000 | |
| 1333983826.196 1 0 0 0.000 0.000 |