require 'digest/sha2'
result = Digest::SHA256.hexdigest "hoser"
(1..100000).each do |i| Digest::SHA256.hexdigest i.to_s end
Granted those are not complex strings, but ripping through 100,000 in a ~1second isn't bad (1.7mhz Pentium M, 1G RAM).
When I started this blog (2004) it was to document Gentoo linux experiences and *nix adventures. Then it turned into posts regarding software development challenges and other findings. These days I mostly tweet (rollinsruss) and my posts are infrequent.
No comments:
Post a Comment