hyc / randprog

Randomly generate a C (or javascript) program
Other
31 stars 4 forks source link

Soliciting performance feedback #1

Open hyc opened 6 years ago

hyc commented 6 years ago

Please comment here with your timings and hardware specs. Thanks. If you're on Linux x86-64 and can't compile it yourself, there's a binary on http://highlandsun.com/hyc/randprog.tar.gz built from commit 33c88e206a8dc2ba30006f88a3b31ffcd582903b

Also for comparison, note your Cryptonight hash rate (for a single CPU core).

sanderfoobar commented 6 years ago

Intel(R) Core(TM) i7-4930K CPU @ 3.40GHz (stock speeds)

LD_LIBRARY_PATH=. ./randprog 0707b981efd6054475e33d0aaad456bc05627ab0cc5b8dd09664af17fc8cc8d8bbe480d6f7bb6c00000000578a820621e38a1807b66f2825a6c0efdcab0c5b84642f93efb1fdd6d7db7b2411
1000 nonces took 8.315764 seconds
Gingeropolous commented 6 years ago

./randprog 0707d3e3eed60567c58e1dd1ed1de3c7616cf905f3f916fca06ab9a619c4b25c6c050e9f5e867d00000000dd02439c07548494530d11d2d9de0f94d342976425e93ee3fb7f144a6bdfa43d07

model name : AMD Opteron(TM) Processor 6276 (has aes)

1000 nonces took 29.695337 seconds 1000 nonces took 29.915520 seconds

Cryptonight Variant 1 (aka monero7): 30 h/s

Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz

1000 nonces took 9.135492 seconds

Cryptonight Variant 1 (aka monero7): 77 h/s

AMD Opteron 23xx (Gen 3 Class Opteron), on a vps (it was the guest) Host has model name : AMD Opteron(tm) Processor 6172 (no aes)

1000 nonces took 35.070036 seconds

Cryptonight Variant 1 (aka monero7): 13 h/s

pazos commented 6 years ago

Intel(R) Core(TM) i5-4440 CPU @ 3.10GHz

LD_LIBRARY_PATH=. ./randprog 0707b981efd6054475e33d0aaad456bc05627ab0cc5b8dd09664af17fc8cc8d8bbe480d6f7bb6c00000000578a820621e38a1807b66f2825a6c0efdcab0c5b84642f93efb1fdd6d7db7b2411

1000 nonces took 7.280123 seconds

joijuke commented 6 years ago

linux: NAME="Ubuntu" VERSION="16.04.1 LTS (Xenial Xerus)"

model name : QEMU Virtual CPU version 2.4.1 stepping : 3 microcode : 0x1 cpu MHz : 2194.916 cache size : 4096 KB

./randprog 0707b981efd6054475e33d0aaad456bc05627ab0cc5b8dd09664af17fc8cc8d8bbe480d6f7bb6c00000000578a820621e38a1807b66f2825a6c0efdcab0c5b84642f93efb1fdd6d7db7b2411

1000 nonces took 11.104061 seconds

=== what is the type of randprog argument ??

hyc commented 6 years ago

@zhizhongzhiwai it's a hexadecimal string

hyc commented 6 years ago

Thank you very much for reporting your results. But I also need to know your CryptoNight hash rate on the same CPU. Thanks!

joijuke commented 6 years ago

@hyc the string is monero address or trasction id>??

joijuke commented 6 years ago

NAME="Ubuntu" VERSION="16.04.1 LTS (Xenial Xerus)"

cat /proc/cpuinfo: processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 6 model name : QEMU Virtual CPU version 2.4.1 stepping : 3 microcode : 0x1 cpu MHz : 2194.916 cache size : 4096 KB physical id : 0 siblings : 1 core id : 0 cpu cores : 1 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good nopl pni cx16 x2apic popcnt hypervisor lahf_lm abm retpoline kaiser bugs : cpu_meltdown spectre_v1 spectre_v2 bogomips : 4389.83 clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management:

./xmrstak --currency monero7 --benchmark 7 [2018-04-22 14:01:54] : Your CPU doesn't support hardware AES. Don't expect high hashrates. [2018-04-22 14:01:54] : MEMORY ALLOC FAILED: mmap failed [2018-04-22 14:01:54] : MEMORY ALLOC FAILED: mmap failed [2018-04-22 14:01:54] : MEMORY ALLOC FAILED: mmap failed [2018-04-22 14:01:54] : MEMORY ALLOC FAILED: mmap failed [2018-04-22 14:01:54] : MEMORY ALLOC FAILED: mmap failed

xmr-stak 2.4.3 26a5d65

Brought to you by fireice_uk and psychocrypt under GPLv3. Based on CPU mining code by wolf9466 (heavily optimized by fireice_uk).

Configurable dev donation level is set to 2.0%

You can use following keys to display reports 'h' - hashrate 'r' - results 'c' - connection

[2018-04-22 14:01:54] : Mining coin: monero7 !!!! Doing only a benchmark and exiting. To mine, remove the '--benchmark' option. !!!! [2018-04-22 14:01:54] : Prepare benchmark for block version 7 [2018-04-22 14:01:54] : Starting 2x thread, affinity: 0. [2018-04-22 14:01:54] : hwloc: memory pinned [2018-04-22 14:01:54] : Starting 2x thread, affinity: 1. [2018-04-22 14:01:54] : MEMORY ALLOC FAILED: mmap failed [2018-04-22 14:01:54] : MEMORY ALLOC FAILED: mmap failed [2018-04-22 14:01:54] : hwloc: memory pinned [2018-04-22 14:01:54] : Wait 30 sec until all backends are initialized [2018-04-22 14:01:54] : MEMORY ALLOC FAILED: mmap failed [2018-04-22 14:01:54] : MEMORY ALLOC FAILED: mmap failed [2018-04-22 14:02:24] : Start a 60 second benchmark... [2018-04-22 14:03:24] : Benchmark Thread 0 cpu: 18.0 H/S [2018-04-22 14:03:24] : Benchmark Thread 1 cpu: 17.8 H/S [2018-04-22 14:03:24] : Benchmark Total: 35.8 H/S

./randprog 0707b981efd6054475e33d0aaad456bc05627ab0cc5b8dd09664af17fc8cc8d8bbe480d6f7bb6c00000000578a820621e38a1807b66f2825a6c0efdcab0c5b84642f93efb1fdd6d7db7b2411

1000 nonces took 12.012788 seconds

glv2 commented 6 years ago

cpu: Intel(R) Core(TM) i7-3630QM CPU @ 2.40GHz randprog: 1000 nonces took 9.032625 seconds cryptonight: 65 H/s

cpu: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz randprog: 1000 nonces took 14.901971 seconds cryptonight: 14 H/s

tevador commented 6 years ago

Intel Xeon E3-1245 @ 3.7 GHz (virtual machine): 1000 nonces took 7.860379 seconds Cryptonight hashrate = 71 H/s per thread

Intel Core i3-3220 @ 3.3 GHz: 1000 nonces took 9.508519 seconds Cryptonight hashrate = 28 H/s per thread (no hardware AES)

milargos commented 6 years ago

Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz 1000 nonces took 4.679993 seconds Cryptonight hashrate = 77 H/s per thread.

manianac commented 6 years ago

Intel(R) Xeon(R) CPU E31220 @ 3.10GHz does have AES

xmr-stak 2.4.3 26a5d65
[2018-04-22 12:20:44] : Mining coin: monero7
[2018-04-22 12:20:44] : Prepare benchmark for block version 7
[2018-04-22 12:20:44] : Starting 2x thread, affinity: 0.
[2018-04-22 12:20:44] : hwloc: memory pinned
[2018-04-22 12:20:44] : Starting 2x thread, affinity: 1.
[2018-04-22 12:20:44] : hwloc: memory pinned
[2018-04-22 12:20:44] : Starting 2x thread, affinity: 2.
[2018-04-22 12:20:44] : hwloc: memory pinned
[2018-04-22 12:20:44] : Starting 2x thread, affinity: 3.
[2018-04-22 12:20:44] : hwloc: memory pinned
[2018-04-22 12:20:44] : Wait 30 sec until all backends are initialized
[2018-04-22 12:21:14] : Start a 60 second benchmark...
[2018-04-22 12:22:14] : Benchmark Thread 0 cpu: 30.8 H/S
[2018-04-22 12:22:14] : Benchmark Thread 1 cpu: 30.9 H/S
[2018-04-22 12:22:14] : Benchmark Thread 2 cpu: 29.5 H/S
[2018-04-22 12:22:14] : Benchmark Thread 3 cpu: 21.3 H/S
[2018-04-22 12:22:14] : Benchmark Total: 112.5 H/S
LD_LIBRARY_PATH=. ./randprog 0707b981efd6054475e33d0aaad456bc05627ab0cc5b8dd09664af17fc8cc8d8bbe480d6f7bb6c00000000578a820621e38a1807b66f2825a6c0efdcab0c5b84642f93efb1fdd6d7db7b2411
1000 nonces took 9.517657 seconds
antanst commented 6 years ago

Intel(R) Xeon(R) CPU E3-1220L V2 @ 2.30GHz

1000 nonces took 9.469928 seconds

xmr-stack with options cmake . -DCUDA_ENABLE=OFF -DOpenCL_ENABLE=OFF -DMICROHTTPD_ENABLE=OFF -DOpenSSL_ENABLE=OFF -DHWLOC_ENABLE=OFF

[2018-04-22 21:15:26] : Benchmark Thread 0 cpu: 24.8 H/S
[2018-04-22 21:15:26] : Benchmark Thread 1 cpu: 23.7 H/S
[2018-04-22 21:15:26] : Benchmark Total: 48.5 H/S
einsteinsfool commented 6 years ago

Intel(R) Core(TM) i7-4712MQ CPU @ 2.30GHz

LD_LIBRARY_PATH=. ./randprog 0707b981efd6054475e33d0aaad456bc05627ab0cc5b8dd09664af17fc8cc8d8bbe480d6f7bb6c00000000578a820621e38a1807b66f2825a6c0efdcab0c5b84642f93efb1fdd6d7db7b2411
1000 nonces took 9.329592 seconds

Average hashrate over 15m with xmr-stak 2.4.3:

Thread 0: 20.1
Thread 1: 30.8
Thread 2: 40.3
m2049r commented 6 years ago

Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz

LD_LIBRARY_PATH=. ./randprog 0707b981efd6054475e33d0aaad456bc05627ab0cc5b8dd09664af17fc8cc8d8bbe480d6f7bb6c00000000578a820621e38a1807b66f2825a6c0efdcab0c5b84642f93efb1fdd6d7db7b2411
1000 nonces took 7.171529 seconds

piping the output to less gives 1000 nonces took 6.656336 seconds

Codivorous commented 6 years ago

Ryzen 7 1800X ~ 450 hashes/s on Ubuntu 18.04

1000 nonces took 7.184799 seconds