Skip to content

Instantly share code, notes, and snippets.

@wu-sheng
Last active December 28, 2016 03:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wu-sheng/6495f310200eb7b429e81c3b01098c7e to your computer and use it in GitHub Desktop.
Save wu-sheng/6495f310200eb7b429e81c3b01098c7e to your computer and use it in GitHub Desktop.
TraceId Generation by Random.Long
  • My laptop benchmarks normal random long (including work to create the java object representing a context) is something like 40 per microsecond
  • Desktop: 2.8Ghz macbook pro
  • Using threadlocalrandom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment