Re: benchmark
Atom 'Smasher' <[email protected]>
| Newsgroups | gmane.mail.spam.hashcash |
|---|---|
| Message-ID | <20040914213924.Y52683@willy_wonka> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 the freeBSD (at least ~my~ freeBSD) weirdness continues... so, i upgraded to gcc 3.4.2 (i thought i got rid of 2.x when i loaded this box), and rebuilt hashcash with `make x86`. aside from several notices about: `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead. the build seemed to go smooth.... until i tried using it. attached is my benchmark test. MD5 (benchmark) = 8874eb41d5b5db996d23972574049e68 FreeBSD 4.9-RELEASE CPU: AMD Duron(tm) Processor (1194.92-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x671 Stepping = 1 Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE> AMD Features=0xc0480000<MP,AMIE,DSP,3DNow!> when minting stamps, i get almost a 50% failure rate: $ hashcash -Xm foo ERROR: requested 20 bits, reported 20 bits, got 1 bits using AMD64/x86 MMX Standard 1x2-pipe minter: "1:20:040915:foo::ryzM4fvR3J/CGAf9:00002xgx" 0bit stamp - hangs 1bit stamp ~ 20% failure 2bit stamp ~ 35% failure 3bit stamp ~ 40% failure 4bit stamp ~ 47% failure ... 20bit stamp ~ 51% failure any ideas? i'm using generic in the meantime... ...atom _________________________________________ PGP key - http://atom.smasher.org/pgp.txt 762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808 ------------------------------------------------- "What the hell are you getting so upset about?" he asked her bewilderedly in a tone of contrite amusement. "I thought you didn't believe in God." "I don't," she sobbed, bursting violently into tears. "But the God I don't believe in is a good God, a just God, a merciful God. He's not the mean and stupid God you make him out to be." -- Joseph Heller, Catch-22 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.3.6 (FreeBSD) Comment: What is this gibberish? Comment: http://atom.smasher.org/links/#digital_signatures iQEcBAEBCAAGBQJBR6uYAAoJEAx/d+cTpVcizDwIAJmZkhph2H6hvtFXsJn+Pwck hmv20G/3Or3W8J7FPCPijYXg1RkT/O6fq3g9+gxdafcQQQhceSYjleKF26Bgh+0l JymbvcXvlCXziUh58tyNQmTyzK5EFC+n/dnM3+foFWtNn4mW35mtwo6ZlgrwfrUn JNpHWJii3+fE9/mASAHc/TYsTCdFSyINdkTvOnK7/rWpYBNJbmQOq1MWwqx81pOg zKZfHhEIPOi0DtxIB8xlBuYkY6D8GL8N3zEwmB5PlauNXVrVOW3D4d7uQ+7MElBh c339QXQGVL5TpiK+QPJ4Z1Ec5POURQK5n8lBgfAxXLTz+XGOAnPw12L3onrwmb0= =d8uf -----END PGP SIGNATURE-----
benchmark
(text/plain, 2 KB)
Rate Name (* machine default)
ANSI Compact 1-pipe
1137824 ANSI Compact 1-pipe
Solution: 1:22:040404:foo::0123456789abcdef:0000000JaED
Iterations: 5129101
Time taken: 4.508
ANSI Standard 1-pipe
1345337 ANSI Standard 1-pipe
Solution: 1:22:040404:foo::0123456789abcdef:0000000JaED
Iterations: 5129101
Time taken: 3.812
ANSI Ultra-Compact 1-pipe
1176567 ANSI Ultra-Compact 1-pipe
Solution: 1:22:040404:foo::0123456789abcdef:0000000JaED
Iterations: 5129101
Time taken: 4.359
ANSI Compact 2-pipe
1326312 ANSI Compact 2-pipe
Solution: 1:22:040404:foo::0123456789abcdef:0000000JaED
Iterations: 5129101
Time taken: 3.867
ANSI Standard 2-pipe
1370615 ANSI Standard 2-pipe
Solution: 1:22:040404:foo::0123456789abcdef:0000000JaED
Iterations: 5129101
Time taken: 3.742
--- PowerPC Altivec Standard 1x4-pipe (Not available on this machine)
--- PowerPC Altivec Compact 2x4-pipe (Not available on this machine)
--- PowerPC Altivec Standard 2x4-pipe (Not available on this machine)
AMD64/x86 MMX Compact 1x2-pipe
ERROR!
Wanted 22 bits, reported 22 bits, got 1 bits.
End-of-block marker remains intact.
"1:22:040404:foo::0123456789abcdef:0000000ih8L"
Time taken: 6.586
AMD64/x86 MMX Standard 1x2-pipe
ERROR!
Wanted 22 bits, reported 22 bits, got 1 bits.
End-of-block marker remains intact.
"1:22:040404:foo::0123456789abcdef:0000000ih8L"
Time taken: 6.320
Best minter: ANSI Standard 2-pipe (1370615 hashes/sec)
Projected average times to mint:
8 bits: 0.000 seconds (186.8 microseconds)
10 bits: 0.001 seconds (747.1 microseconds)
16 bits: 0.048 seconds
20 bits: 0.765 seconds
22 bits: 3.060 seconds
24 bits: 12.241 seconds
26 bits: 48.963 seconds
28 bits: 195.850 seconds (3.3 minutes)
30 bits: 783.401 seconds (13.1 minutes)