Giter Site home page Giter Site logo

Comments (2)

fabiolimace avatar fabiolimace commented on May 10, 2024

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.

fabiolimace avatar fabiolimace commented on May 10, 2024

Released version 3.1.2.

from uuid-creator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.