Skip to content

Instantly share code, notes, and snippets.

@okeuday
Created October 4, 2013 20:42
Show Gist options
  • Save okeuday/6832394 to your computer and use it in GitHub Desktop.
Save okeuday/6832394 to your computer and use it in GitHub Desktop.
uuid run
TEST uuid_creation
N == 100000 (10 runs)
erlang:make_ref/0 get: 7161.7 us ( 1.0)
v1 erlang get: 79289.2 us ( 11.1)
v1 os get: 72063.8 us ( 10.1)
v3 get: 78722.5 us ( 11.0)
v3 compat get: 73597.6 us ( 10.3)
v4 crypto strong get: 218098.7 us ( 30.5)
v4 crypto weak get: 219091.8 us ( 30.6)
v4 random bigint get: 197156.6 us ( 27.5)
v4 random native get: 303285.3 us ( 42.3)
v4 random_wh06_int get: 187091.3 us ( 26.1)
v5 get: 94623.8 us ( 13.2)
v5 compat get: 84774.8 us ( 11.8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment