Ben Chuanlong Du's Blog

It is never too late to learn.

Latency Numbers Programmers Should Know

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Latency Operations
<=1ns
  • accessing CPU registers
  • CPU clock cycle
  • L1 cache
1-10ns
  • L2 cache
  • branch mispredict
10-100ns
  • L3 cache
  • mutex lock/unlock
  • main memory referencing
100-1000ns
  • trapping of system call
  • md5 …

Python Modules for Date and Time

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

datetime

dateutil

Useful extensions to the standard Python datetime features

dateparser

python parser for human readable dates

arrow

Better dates & times for Python.

monthdelta

Date and Time in Java and Scala

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Use Joda time if you are using JDK <= 7 and java.time if you are using JDK8 and above.

If you do prefer Scala libraries (when working in Scala), https://github …