Data-UUID-MT
view release on metacpan or search on metacpan
creation.
Data::UUID::LibUUID will reseed on fork on Mac OSX.
I have not explored further whether other UUID generators are
fork/thread safe.
Benchmarks
The examples/bench.pl program included with this module does some simple
benchmarking of UUID generation speeds. Here is the output from my
desktop system (AMD Phenom II X6 1045T CPU). Note that "v?" is used
where the choice is left to "libuuid" -- which will result in version 4
UUIDs on my system.
Benchmark on Perl v5.14.0 for x86_64-linux with 8 byte integers.
Key:
U => UUID 0.02
UT => UUID::Tiny 1.03
DG => Data::GUID 0.046
DU => Data::UUID 1.217
lib/Data/UUID/MT.pm view on Meta::CPAN
and reseeds if necessary. If L<Scalar::Util> is installed and provides
C<weaken()>, Data::UUID::MT will also reseed its objects on thread creation.
Data::UUID::LibUUID will reseed on fork on Mac OSX.
I have not explored further whether other UUID generators are fork/thread safe.
=head2 Benchmarks
The F<examples/bench.pl> program included with this module does some simple
benchmarking of UUID generation speeds. Here is the output from my desktop
system (AMD Phenom II X6 1045T CPU). Note that "v?" is used where the choice
is left to C<libuuid> -- which will result in version 4 UUIDs on my system.
Benchmark on Perl v5.14.0 for x86_64-linux with 8 byte integers.
Key:
U => UUID 0.02
UT => UUID::Tiny 1.03
DG => Data::GUID 0.046
DU => Data::UUID 1.217
( run in 0.468 second using v1.01-cache-2.11-cpan-299005ec8e3 )