Skip to content

Commit

Permalink
tims daily bench from macbook, ran on battery
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Siwula committed Aug 23, 2017
1 parent 308eff1 commit 7922652
Show file tree
Hide file tree
Showing 2 changed files with 140 additions and 0 deletions.
66 changes: 66 additions & 0 deletions processed/geth_20170823_tim.txt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
```
Name Gascost Time (ns) MGas/S Gasprice for 10MGas/S Gas/Ideal percent VS Ecdsa
----------------------------------------- --------- ---------------- ---------- ----------------------- ------------------- ----------
PrecompiledEcrecover/ 3000 144319 20.7873 1443.19 207.87 % 1
PrecompiledSha256/128 108 578 186.851 5.78 1868.51 % 0.11
PrecompiledRipeMD/128 1080 1662 649.819 16.62 6498.19 % 0.03
PrecompiledIdentity/128 27 15.3 1764.71 0.153 17647.06 % 0.01
PrecompiledModExp/eip_example1 2611 29852 87.4648 298.52 874.65 % 0.24
PrecompiledModExp/eip_example2 2611 7569 344.96 75.69 3449.60 % 0.06
PrecompiledModExp/nagydani-1-square 40 2236 17.8891 22.36 178.89 % 1.16
PrecompiledModExp/nagydani-1-qube 40 2997 13.3467 29.97 133.47 % 1.56
PrecompiledModExp/nagydani-1-pow0x10001 655 11987 54.6425 119.87 546.43 % 0.38
PrecompiledModExp/nagydani-2-square 133 3717 35.7815 37.17 357.82 % 0.58
PrecompiledModExp/nagydani-2-qube 133 5468 24.3233 54.68 243.23 % 0.85
PrecompiledModExp/nagydani-2-pow0x10001 2129 28191 75.5206 281.91 755.21 % 0.28
PrecompiledModExp/nagydani-3-square 378 7345 51.4636 73.45 514.64 % 0.4
PrecompiledModExp/nagydani-3-qube 378 12177 31.0421 121.77 310.42 % 0.67
PrecompiledModExp/nagydani-3-pow0x10001 6062 69323 87.4457 693.23 874.46 % 0.24
PrecompiledModExp/nagydani-4-square 1116 15967 69.8942 159.67 698.94 % 0.3
PrecompiledModExp/nagydani-4-qube 1116 30117 37.0555 301.17 370.55 % 0.56
PrecompiledModExp/nagydani-4-pow0x10001 17858 187924 95.0278 1879.24 950.28 % 0.22
PrecompiledModExp/nagydani-5-square 3573 39178 91.1991 391.78 911.99 % 0.23
PrecompiledModExp/nagydani-5-qube 3573 81914 43.6189 819.14 436.19 % 0.48
PrecompiledModExp/nagydani-5-pow0x10001 57180 564070 101.37 5640.7 1013.70 % 0.21
PrecompiledBn256Add/chfast1 500 40977 12.202 409.77 122.02 % 1.7
PrecompiledBn256Add/chfast2 500 43206 11.5725 432.06 115.72 % 1.8
PrecompiledBn256Add/cdetrio1 500 1332 375.375 13.32 3753.75 % 0.06
PrecompiledBn256Add/cdetrio2 500 1365 366.3 13.65 3663.00 % 0.06
PrecompiledBn256Add/cdetrio3 500 1361 367.377 13.61 3673.77 % 0.06
PrecompiledBn256Add/cdetrio4 500 1393 358.938 13.93 3589.38 % 0.06
PrecompiledBn256Add/cdetrio5 500 1337 373.972 13.37 3739.72 % 0.06
PrecompiledBn256Add/cdetrio6 500 1442 346.741 14.42 3467.41 % 0.06
PrecompiledBn256Add/cdetrio7 500 1449 345.066 14.49 3450.66 % 0.06
PrecompiledBn256Add/cdetrio8 500 1474 339.213 14.74 3392.13 % 0.06
PrecompiledBn256Add/cdetrio9 500 1454 343.879 14.54 3438.79 % 0.06
PrecompiledBn256Add/cdetrio10 500 1452 344.353 14.52 3443.53 % 0.06
PrecompiledBn256Add/cdetrio11 500 6221 80.3729 62.21 803.73 % 0.26
PrecompiledBn256Add/cdetrio12 500 6182 80.88 61.82 808.80 % 0.26
PrecompiledBn256Add/cdetrio13 500 40954 12.2088 409.54 122.09 % 1.7
PrecompiledBn256Add/cdetrio14 500 6039 82.7952 60.39 827.95 % 0.25
PrecompiledBn256ScalarMul/chfast1 2000 420845 4.75234 4208.45 47.52 % 4.37
PrecompiledBn256ScalarMul/chfast2 2000 1.63471e+06 1.22346 16347.1 12.23 % 16.99
PrecompiledBn256ScalarMul/chfast3 2000 1.61231e+06 1.24045 16123.1 12.40 % 16.76
PrecompiledBn256Pairing/jeff1 260000 1.73025e+07 15.0268 173025 150.27 % 1.38
PrecompiledBn256Pairing/jeff2 260000 1.71606e+07 15.151 171606 151.51 % 1.37
PrecompiledBn256Pairing/jeff3 260000 1.70413e+07 15.2571 170413 152.57 % 1.36
PrecompiledBn256Pairing/jeff4 340000 2.19776e+07 15.4703 219776 154.70 % 1.34
PrecompiledBn256Pairing/jeff5 340000 2.18549e+07 15.5572 218549 155.57 % 1.34
PrecompiledBn256Pairing/jeff6 260000 1.72576e+07 15.0658 172576 150.66 % 1.38
PrecompiledBn256Pairing/empty_data 100000 1.45199e+06 68.8709 14519.9 688.71 % 0.3
PrecompiledBn256Pairing/one_point 180000 1.19181e+07 15.103 119181 151.03 % 1.38
PrecompiledBn256Pairing/two_point_match_2 260000 1.03556e+07 25.1072 103556 251.07 % 0.83
PrecompiledBn256Pairing/two_point_match_3 260000 1.67302e+07 15.5407 167302 155.41 % 1.34
PrecompiledBn256Pairing/two_point_match_4 260000 1.67516e+07 15.5209 167516 155.21 % 1.34
PrecompiledBn256Pairing/ten_point_match_1 900000 4.562e+07 19.7282 456200 197.28 % 1.05
PrecompiledBn256Pairing/ten_point_match_2 900000 5.33891e+07 16.8574 533891 168.57 % 1.23
PrecompiledBn256Pairing/ten_point_match_3 260000 1.67837e+07 15.4912 167837 154.91 % 1.34
```

Columns

* `MGas/S` - Shows what MGas per second was measured on that machine at that time
* `Gasprice for 10MGas/S` shows what the gasprice should have been, in order to reach 10 MGas/second
* `Gas/Ideal percent` shows how the gas should be adjusted, in order to reach 10 MGas/second
* `VS Ecdsa` shows a factor by which the gascost should be multiplied, in order to reach the same G/S as `ecRecover`

74 changes: 74 additions & 0 deletions rawdata/geth_20170823_tim.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
August 23rd *** macbook *** results:

➜ vm git:(master) ✗ go test -bench BenchmarkPrecompiled -benchtime 5s
BenchmarkPrecompiledEcrecover/-Gas=3000-8 50000 144319 ns/op
BenchmarkPrecompiledSha256/128-Gas=108-8 20000000 578 ns/op
BenchmarkPrecompiledRipeMD/128-Gas=1080-8 5000000 1662 ns/op
BenchmarkPrecompiledIdentity/128-Gas=27-8 500000000 15.3 ns/op
BenchmarkPrecompiledModExp/eip_example1-Gas=2611-8 300000 29852 ns/op
BenchmarkPrecompiledModExp/eip_example2-Gas=2611-8 1000000 7569 ns/op
BenchmarkPrecompiledModExp/nagydani-1-square-Gas=40-8 3000000 2236 ns/op
BenchmarkPrecompiledModExp/nagydani-1-qube-Gas=40-8 3000000 2997 ns/op
BenchmarkPrecompiledModExp/nagydani-1-pow0x10001-Gas=655-8 500000 11987 ns/op
BenchmarkPrecompiledModExp/nagydani-2-square-Gas=133-8 2000000 3717 ns/op
BenchmarkPrecompiledModExp/nagydani-2-qube-Gas=133-8 1000000 5468 ns/op
BenchmarkPrecompiledModExp/nagydani-2-pow0x10001-Gas=2129-8 300000 28191 ns/op
BenchmarkPrecompiledModExp/nagydani-3-square-Gas=378-8 1000000 7345 ns/op
BenchmarkPrecompiledModExp/nagydani-3-qube-Gas=378-8 500000 12177 ns/op
BenchmarkPrecompiledModExp/nagydani-3-pow0x10001-Gas=6062-8 100000 69323 ns/op
BenchmarkPrecompiledModExp/nagydani-4-square-Gas=1116-8 500000 15967 ns/op
BenchmarkPrecompiledModExp/nagydani-4-qube-Gas=1116-8 200000 30117 ns/op
BenchmarkPrecompiledModExp/nagydani-4-pow0x10001-Gas=17858-8 50000 187924 ns/op
BenchmarkPrecompiledModExp/nagydani-5-square-Gas=3573-8 200000 39178 ns/op
BenchmarkPrecompiledModExp/nagydani-5-qube-Gas=3573-8 100000 81914 ns/op
BenchmarkPrecompiledModExp/nagydani-5-pow0x10001-Gas=57180-8 10000 564070 ns/op
BenchmarkPrecompiledBn256Add/chfast1-Gas=500-8 200000 40977 ns/op
BenchmarkPrecompiledBn256Add/chfast2-Gas=500-8 200000 43206 ns/op
BenchmarkPrecompiledBn256Add/cdetrio1-Gas=500-8 5000000 1332 ns/op
BenchmarkPrecompiledBn256Add/cdetrio2-Gas=500-8 5000000 1365 ns/op
BenchmarkPrecompiledBn256Add/cdetrio3-Gas=500-8 5000000 1361 ns/op
BenchmarkPrecompiledBn256Add/cdetrio4-Gas=500-8 5000000 1393 ns/op
BenchmarkPrecompiledBn256Add/cdetrio5-Gas=500-8 5000000 1337 ns/op
BenchmarkPrecompiledBn256Add/cdetrio6-Gas=500-8 5000000 1442 ns/op
BenchmarkPrecompiledBn256Add/cdetrio7-Gas=500-8 5000000 1449 ns/op
BenchmarkPrecompiledBn256Add/cdetrio8-Gas=500-8 5000000 1474 ns/op
BenchmarkPrecompiledBn256Add/cdetrio9-Gas=500-8 5000000 1454 ns/op
BenchmarkPrecompiledBn256Add/cdetrio10-Gas=500-8 5000000 1452 ns/op
BenchmarkPrecompiledBn256Add/cdetrio11-Gas=500-8 1000000 6221 ns/op
BenchmarkPrecompiledBn256Add/cdetrio12-Gas=500-8 1000000 6182 ns/op
BenchmarkPrecompiledBn256Add/cdetrio13-Gas=500-8 200000 40954 ns/op
BenchmarkPrecompiledBn256Add/cdetrio14-Gas=500-8 1000000 6039 ns/op
BenchmarkPrecompiledBn256ScalarMul/chfast1-Gas=2000-8 20000 420845 ns/op
BenchmarkPrecompiledBn256ScalarMul/chfast2-Gas=2000-8 5000 1634706 ns/op
BenchmarkPrecompiledBn256ScalarMul/chfast3-Gas=2000-8 5000 1612314 ns/op
BenchmarkPrecompiledBn256Pairing/jeff1-Gas=260000-8 500 17302458 ns/op
BenchmarkPrecompiledBn256Pairing/jeff2-Gas=260000-8 500 17160573 ns/op
BenchmarkPrecompiledBn256Pairing/jeff3-Gas=260000-8 500 17041258 ns/op
BenchmarkPrecompiledBn256Pairing/jeff4-Gas=340000-8 300 21977570 ns/op
BenchmarkPrecompiledBn256Pairing/jeff5-Gas=340000-8 300 21854866 ns/op
BenchmarkPrecompiledBn256Pairing/jeff6-Gas=260000-8 500 17257593 ns/op
BenchmarkPrecompiledBn256Pairing/empty_data-Gas=100000-8 5000 1451992 ns/op
BenchmarkPrecompiledBn256Pairing/one_point-Gas=180000-8 500 11918127 ns/op
BenchmarkPrecompiledBn256Pairing/two_point_match_2-Gas=260000-8 1000 10355579 ns/op
BenchmarkPrecompiledBn256Pairing/two_point_match_3-Gas=260000-8 500 16730228 ns/op
BenchmarkPrecompiledBn256Pairing/two_point_match_4-Gas=260000-8 500 16751615 ns/op
BenchmarkPrecompiledBn256Pairing/ten_point_match_1-Gas=900000-8 200 45620049 ns/op
BenchmarkPrecompiledBn256Pairing/ten_point_match_2-Gas=900000-8 100 53389117 ns/op
BenchmarkPrecompiledBn256Pairing/ten_point_match_3-Gas=260000-8 500 16783709 ns/op
PASS
ok _/Users/tim.siwula/Dropbox/Projects/go-ethereum/core/vm 478.468s
➜ vm git:(master) ✗ git rev-parse HEAD
3c48a25762dfab9382791c33a2f5832466077ac3

Ran on:
Model Name: MacBook Pro
Model Identifier: MacBookPro14,3
Processor Name: Intel Core i7
Processor Speed: 3.1 GHz
Number of Processors: 1
Total Number of Cores: 4
L2 Cache (per Core): 256 KB
L3 Cache: 8 MB
Memory: 16 GB
System Version: macOS 10.12.6 (16G29)
Kernel Version: Darwin 16.7.0

0 comments on commit 7922652

Please sign in to comment.