-
Notifications
You must be signed in to change notification settings - Fork 45
5.0. Benchmark
Fabio Lima edited this page Nov 6, 2021
·
15 revisions
This section shows benchmarks comparing UuidCreator
to java.util.UUID
.
--------------------------------------------------------------------------------
THROUGHPUT (operations/msec) Mode Cnt Score Error Units
--------------------------------------------------------------------------------
UUID_toString thrpt 5 2922,273 ± 71,279 ops/ms
UUID_fromString thrpt 5 2083,705 ± 39,578 ops/ms
UUID_RandomBased thrpt 5 2053,765 ± 31,964 ops/ms
UUID_NameBasedMd5 thrpt 5 2953,064 ± 65,484 ops/ms
--------------------------------------------------------------------------------
UuidCreator_toString (7x) thrpt 5 21533,728 ± 175,913 ops/ms *
UuidCreator_fromString (7x) thrpt 5 15610,646 ± 196,864 ops/ms *
UuidCreator_RandomBased thrpt 5 2019,678 ± 26,092 ops/ms
UuidCreator_PrefixComb thrpt 5 2704,653 ± 53,146 ops/ms
UuidCreator_ShortPrefixComb thrpt 5 2091,576 ± 51,236 ops/ms
UuidCreator_NameBasedMd5 thrpt 5 2878,344 ± 39,492 ops/ms
UuidCreator_NameBasedSha1 thrpt 5 2199,752 ± 49,427 ops/ms
UuidCreator_TimeBased thrpt 5 9887,710 ± 64,261 ops/ms
UuidCreator_TimeOrdered thrpt 5 9877,150 ± 26,825 ops/ms
--------------------------------------------------------------------------------
Total time: 00:17:23
--------------------------------------------------------------------------------
(*) The methods UuidCreator.toString()
and UuidCreator.fromString()
are much faster only in JDK 8.
System: JVM 8, Ubuntu 20.04, CPU i5-3330, 8G RAM.
To execute the benchmark, run ./benchmark/run.sh
.