Skip to main content

hlc_dart

The hybrid logical clock: local and receive events, comparison, and the 8-byte encoding. Each row repeats the operation 100,000 times.

hlc_benchmark.dart​

BenchmarkRunTime (us)RunTime (ms)RunTime (s)
HLC toUint8List x100k24.45010.02450.000024
HLC fromUint8List x100k495.96720.49600.000496
HLC compareTo x100k84.06600.08410.000084
HLC localEvent x100k62.89560.06290.000063
HLC receiveEvent x100k299.04300.29900.000299