sony / sonyflake

A distributed unique ID generator inspired by Twitter's Snowflake
MIT License
3.89k stars 304 forks source link

Performance? #10

Closed henrikbjorn closed 5 years ago

henrikbjorn commented 5 years ago

How is the performance of generating IDs with this library compared to the others out there?

YoshiyukiMineo commented 5 years ago

I have updated README. The description about the performance is the following:

It can generate 2^8 IDs per 10 msec at most in a single machine/thread (slower than Snowflake) However, if you want more generation rate in a single host, you can easily run multiple Sonyflake ID generators concurrently using goroutines.