N
Newb Newb
How Can I generate uuid ? any references or Ideas could You people
suggest.I have not even heard about it?
suggest.I have not even heard about it?
Newb said:How Can I generate uuid ? any references or Ideas could You people
suggest.I have not even heard about it?
that's nice. 10k real uuids in 1 minute is perfectly acceptable for
almost all cases. thanks.
% ./blah.rb 10000
# of iterations = 10000
user system total real
null_time 0.000000 0.000000 0.000000 ( 0.001486)
ezra 0.200000 0.000000 0.200000 ( 0.201678)
uuidgen 1.160000 12.630000 58.190000 ( 56.684045)
----
puts "# of iterations = #{max}"
Benchmark::bm(20) do |x|
x.report("null_time") do
for i in 0..max do
# do nothing
end
end
x.report("ezra") do
for i in 0..max do
fast_token
end
end
x.report("uuidgen") do
for i in 0..max do
`uuidgen`.strip
end
end
end
Newb said:How Can I generate uuid ? any references or Ideas could You people
suggest.I have not even heard about it?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.