Tim Bond
April 7 2015
Photo: @ObjectRocket
Use case: Instagram needed a quick way to get the user ID for a given media ID
Based on a plain multi-dimensional object. Encode/decode times for 10,000 ops
| json | serialize | igbinary | |
|---|---|---|---|
| Bytes | 43,534 | 63,141 | 28,120 |
| Encode | 4.6174 | 4.4535 | 4.2700 |
| Decode | 15.5725 | 5.4071 | 3.5658 |
Bonus: Can compare current timestamp to last timestamp
Caveat: Every action increments the counter
Neither does serialization!