Comments (2)
Now the method UuidConverter#fromString(String)
is 5x faster than UUID#fromString(String)
in JDK 8 and 11.
Now the method UuidConverter#toString(String)
is 7x faster than
UUID#toString() in JDK 8.
Benchmark in JDK 8:
Benchmark Mode Cnt Score Error Units
Throughput.UUID_fromString thrpt 5 1917,663 ± 58,287 ops/ms
Throughput.UUID_toString thrpt 5 2897,979 ± 99,724 ops/ms
Throughput.UuidCreator_fromString thrpt 5 10230,760 ± 106,844 ops/ms
Throughput.UuidCreator_toString thrpt 5 20800,729 ± 220,021 ops/ms
Benchmark in JDK 11:
Benchmark Mode Cnt Score Error Units
Throughput.UUID_fromString thrpt 5 7900,104 ± 78,608 ops/ms
Throughput.UUID_toString thrpt 5 31687,104 ± 204,545 ops/ms (*)
Throughput.UuidCreator_fromString thrpt 5 9635,343 ± 62,319 ops/ms
Throughput.UuidCreator_toString thrpt 5 20652,287 ± 336,251 ops/ms
In JDK9+ UUID#toString()
is faster.
Benchmark project:
https://github.com/fabiolimace/uuid-creator-benchmark
from uuid-creator.
Released version 3.1.2.
from uuid-creator.
Related Issues (20)
- Fast version of UUID v7 HOT 3
- UriCodec.isUuidUrn(java.net.URI uri) HOT 3
- IETF Draft Update 4 HOT 2
- Version 5.0.0 HOT 1
- TimeOrdered UUID creator generate out-of-order values HOT 4
- Add support for RandomGenerator in Java 17 HOT 2
- Optimize UuidComparator HOT 2
- Doc bug HOT 6
- Rewrite docs HOT 1
- Add a fast method to generate random-based identifiers HOT 1
- Fix MAX UUID HOT 1
- Dates before the Epoch should not be supported HOT 2
- Add a MIN and MAX methods HOT 1
- Add an alternative to the JDK's built-in UUID HOT 1
- Hide MSB and LSB methods used only for tests HOT 1
- Remove the GUID.get() method, synonymous with GUID.toUUID() HOT 1
- Add a faster parser for GUID HOT 2
- Add a getTimeOrderedEpoch with instant parameter HOT 5
- Deprecation of name-based methods with a UUID name parameter HOT 3
- Replacing all synchronized methods with ReentrantLock HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uuid-creator.