[hashcash] Re: libfastmint update 20040915

  • From: Atom 'Smasher' <atom@xxxxxxxxxxxxxx>
  • To: hashcash@xxxxxxxxxxxxx
  • Date: Thu, 16 Sep 2004 02:14:02 -0400 (EDT)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

the patch seems to work well. i built and installed 1.08 with x86 and have a 0% failure rate when minting stamps (attempting to mint a zero bit stamp still hangs).

MD5 (benchmark.brok_x86) = dbb4ef9063ba592d9e7f3b29441c1382
MD5 (benchmark.generic) = d85680646808e626c3cd49551a24a004
MD5 (benchmark.patched) = 3eb93c5bfc2f063e0e9bdac256b898a8

weirdness: using an unpatched 1.08 (generic build) my best minter is:

          ANSI Standard 2-pipe
  1495500 ANSI Standard 2-pipe
    Solution:  1:22:040404:foo::0123456789abcdef:0000000JaED
    Iterations: 5129101
    Time taken: 3.430

using the patched version (x86 build) my best minter is:

  2299204 AMD64/x86 MMX Standard 1x2-pipe *
    Solution:  1:22:040404:foo@xxxxxxx::0123456789abcdef:000000Tu1n
    Iterations: 7831665
    Time taken: 3.406

which, according to this benchmark, does a *SLIGHTLY* faster job of going through more iterations(???), but the same build actually slowed down all of the ANSI minters (perhaps because there are more iterations?).

why does the patch seem to require more iterations in all minters to obtain the same results? is that just because the resource was changed from "foo" to "foo@xxxxxxx" and the ~random~ starting point was changed (seems like line 1141 of the patch), requiring 50% more iterations to create the test stamp? it makes it difficult to make a good comparison between the patched and unpatched versions. in any case, it projects that my average time to mint a stamp is about 1/3 faster. that's cool.

thanks...!


...atom

 _________________________________________
 PGP key - http://atom.smasher.org/pgp.txt
 762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
 -------------------------------------------------

        "What luck for rulers, that men do not think."
                -- Adolf Hitler
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.3.6 (FreeBSD)
Comment: What is this gibberish?
Comment: http://atom.smasher.org/links/#digital_signatures

iQEcBAEBCAAGBQJBSS8xAAoJEAx/d+cTpVcichEIAK88IsKPyomqaK/1a2znoA1u
NLn4rGLLfH5SiTOIqY2FnE5dFVlnp32d3fuGUSOdNW72gAAGJNEkc+NJ9SWjrvko
Hhb8++Ok7kw9bEFlhQmWFH5BNoO9devg4UHop9FNWGl4fIXG2aQxYzwORLXDvCXg
OjE+yq8ahiMEofzDXYI/l/eoU033D+I4G3HpIiEi/yxr2DtHgFMHMyYDZJJpSJsR
hUdH2K3dNIN43Q3GAASdaw9yKnQlCT0GnWYWmAwr+i1yVdVYtvRavYPUgp1WS3Cr
Yx74wbZum16TjP7et0kY2dfFzx8u6ml8pxoUazmEyxf2Q76zPZtlhJjZrmPTfaI=
=UeT9
-----END PGP SIGNATURE-----
    Rate  Name (* machine default)

          ANSI Compact 1-pipe
  1334824 ANSI Compact 1-pipe  
    Solution:   1:22:040404:foo@xxxxxxx::0123456789abcdef:000000Tu1n
    Iterations: 7831665
    Time taken: 5.867

          ANSI Standard 1-pipe
  1630005 ANSI Standard 1-pipe  
    Solution:   1:22:040404:foo@xxxxxxx::0123456789abcdef:000000Tu1n
    Iterations: 7831665
    Time taken: 4.805

          ANSI Ultra-Compact 1-pipe
  1243738 ANSI Ultra-Compact 1-pipe  
    Solution:   1:22:040404:foo@xxxxxxx::0123456789abcdef:000000Tu1n
    Iterations: 7831665
    Time taken: 6.297

          ANSI Compact 2-pipe
  1561453 ANSI Compact 2-pipe  
    Solution:   1:22:040404:foo@xxxxxxx::0123456789abcdef:000000Tu1n
    Iterations: 7831665
    Time taken: 5.016

          ANSI Standard 2-pipe
  1637995 ANSI Standard 2-pipe  
    Solution:   1:22:040404:foo@xxxxxxx::0123456789abcdef:000000Tu1n
    Iterations: 7831665
    Time taken: 4.781

   ---    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
  2084102 AMD64/x86 MMX Compact 1x2-pipe  
    Solution:   1:22:040404:foo@xxxxxxx::0123456789abcdef:000000Tu1n
    Iterations: 7831665
    Time taken: 3.758

          AMD64/x86 MMX Standard 1x2-pipe
  2299204 AMD64/x86 MMX Standard 1x2-pipe *
    Solution:   1:22:040404:foo@xxxxxxx::0123456789abcdef:000000Tu1n
    Iterations: 7831665
    Time taken: 3.406

Best minter: AMD64/x86 MMX Standard 1x2-pipe (2299204 hashes/sec)
Projected average times to mint:
  8 bits:     0.000 seconds (111.3 microseconds)
 10 bits:     0.000 seconds (445.4 microseconds)
 16 bits:     0.029 seconds
 20 bits:     0.456 seconds
 22 bits:     1.824 seconds
 24 bits:     7.297 seconds
 26 bits:    29.188 seconds
 28 bits:   116.751 seconds (1.9 minutes)
 30 bits:   467.006 seconds (7.8 minutes)
    Rate  Name (* machine default)

          ANSI Compact 1-pipe
  1139800 ANSI Compact 1-pipe  
    Solution:   1:22:040404:foo::0123456789abcdef:0000000JaED
    Iterations: 5129101
    Time taken: 4.500

          ANSI Standard 1-pipe
  1353659 ANSI Standard 1-pipe  
    Solution:   1:22:040404:foo::0123456789abcdef:0000000JaED
    Iterations: 5129101
    Time taken: 3.789

          ANSI Ultra-Compact 1-pipe
  1178680 ANSI Ultra-Compact 1-pipe  
    Solution:   1:22:040404:foo::0123456789abcdef:0000000JaED
    Iterations: 5129101
    Time taken: 4.352

          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.570

          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)
    Rate  Name (* machine default)

          ANSI Compact 1-pipe
  1274805 ANSI Compact 1-pipe *
    Solution:   1:22:040404:foo::0123456789abcdef:0000000JaED
    Iterations: 5129101
    Time taken: 4.023

          ANSI Standard 1-pipe
  1485350 ANSI Standard 1-pipe  
    Solution:   1:22:040404:foo::0123456789abcdef:0000000JaED
    Iterations: 5129101
    Time taken: 3.453

          ANSI Ultra-Compact 1-pipe
  1284784 ANSI Ultra-Compact 1-pipe  
    Solution:   1:22:040404:foo::0123456789abcdef:0000000JaED
    Iterations: 5129101
    Time taken: 3.992

          ANSI Compact 2-pipe
  1436597 ANSI Compact 2-pipe  
    Solution:   1:22:040404:foo::0123456789abcdef:0000000JaED
    Iterations: 5129101
    Time taken: 3.570

          ANSI Standard 2-pipe
  1495500 ANSI Standard 2-pipe  
    Solution:   1:22:040404:foo::0123456789abcdef:0000000JaED
    Iterations: 5129101
    Time taken: 3.430

   ---    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  (Not available on this machine)
   ---    AMD64/x86 MMX Standard 1x2-pipe  (Not available on this machine)
Best minter: ANSI Standard 2-pipe (1495500 hashes/sec)
Projected average times to mint:
  8 bits:     0.000 seconds (171.2 microseconds)
 10 bits:     0.001 seconds (684.7 microseconds)
 16 bits:     0.044 seconds
 20 bits:     0.701 seconds
 22 bits:     2.805 seconds
 24 bits:    11.218 seconds
 26 bits:    44.874 seconds
 28 bits:   179.495 seconds (3.0 minutes)
 30 bits:   717.981 seconds (12.0 minutes)

Other related posts: