Skip to content

Instantly share code, notes, and snippets.

@fjl
Last active October 10, 2015 01:07
Show Gist options
  • Save fjl/ab1cafd5da9bb6032995 to your computer and use it in GitHub Desktop.
Save fjl/ab1cafd5da9bb6032995 to your computer and use it in GitHub Desktop.
~/s/go-ethereum >> ./build/env.sh go test ./crypto/secp256k1 -count 100 -run - -bench Recover
PASS
BenchmarkRecoverRandomKey-8 10000 180614 ns/op
BenchmarkRecoverRandomKey-8 10000 181670 ns/op
BenchmarkRecoverRandomKey-8 10000 181151 ns/op
BenchmarkRecoverRandomKey-8 10000 181454 ns/op
BenchmarkRecoverRandomKey-8 10000 180784 ns/op
BenchmarkRecoverRandomKey-8 10000 181952 ns/op
BenchmarkRecoverRandomKey-8 10000 182198 ns/op
BenchmarkRecoverRandomKey-8 10000 181652 ns/op
BenchmarkRecoverRandomKey-8 10000 183132 ns/op
BenchmarkRecoverRandomKey-8 10000 186662 ns/op
BenchmarkRecoverRandomKey-8 10000 181704 ns/op
BenchmarkRecoverRandomKey-8 10000 180879 ns/op
BenchmarkRecoverRandomKey-8 10000 181203 ns/op
BenchmarkRecoverRandomKey-8 10000 182718 ns/op
BenchmarkRecoverRandomKey-8 10000 181606 ns/op
BenchmarkRecoverRandomKey-8 10000 182312 ns/op
BenchmarkRecoverRandomKey-8 10000 182435 ns/op
BenchmarkRecoverRandomKey-8 10000 180473 ns/op
BenchmarkRecoverRandomKey-8 10000 181436 ns/op
BenchmarkRecoverRandomKey-8 10000 181346 ns/op
BenchmarkRecoverRandomKey-8 10000 181564 ns/op
BenchmarkRecoverRandomKey-8 10000 181657 ns/op
BenchmarkRecoverRandomKey-8 10000 182975 ns/op
BenchmarkRecoverRandomKey-8 10000 182490 ns/op
BenchmarkRecoverRandomKey-8 10000 182711 ns/op
BenchmarkRecoverRandomKey-8 10000 182253 ns/op
BenchmarkRecoverRandomKey-8 10000 183049 ns/op
BenchmarkRecoverRandomKey-8 10000 181695 ns/op
BenchmarkRecoverRandomKey-8 10000 182140 ns/op
BenchmarkRecoverRandomKey-8 10000 181567 ns/op
BenchmarkRecoverRandomKey-8 10000 182138 ns/op
BenchmarkRecoverRandomKey-8 10000 181100 ns/op
BenchmarkRecoverRandomKey-8 10000 181948 ns/op
BenchmarkRecoverRandomKey-8 10000 180531 ns/op
BenchmarkRecoverRandomKey-8 10000 181415 ns/op
BenchmarkRecoverRandomKey-8 10000 181142 ns/op
BenchmarkRecoverRandomKey-8 10000 182449 ns/op
BenchmarkRecoverRandomKey-8 10000 182907 ns/op
BenchmarkRecoverRandomKey-8 10000 180279 ns/op
BenchmarkRecoverRandomKey-8 10000 181501 ns/op
BenchmarkRecoverRandomKey-8 10000 181205 ns/op
BenchmarkRecoverRandomKey-8 10000 180825 ns/op
BenchmarkRecoverRandomKey-8 10000 181620 ns/op
BenchmarkRecoverRandomKey-8 10000 182180 ns/op
BenchmarkRecoverRandomKey-8 10000 180031 ns/op
BenchmarkRecoverRandomKey-8 10000 181349 ns/op
BenchmarkRecoverRandomKey-8 10000 181511 ns/op
BenchmarkRecoverRandomKey-8 10000 180554 ns/op
BenchmarkRecoverRandomKey-8 10000 180933 ns/op
BenchmarkRecoverRandomKey-8 10000 180489 ns/op
BenchmarkRecoverRandomKey-8 10000 180893 ns/op
BenchmarkRecoverRandomKey-8 10000 181259 ns/op
BenchmarkRecoverRandomKey-8 10000 181041 ns/op
BenchmarkRecoverRandomKey-8 10000 181007 ns/op
BenchmarkRecoverRandomKey-8 10000 180477 ns/op
BenchmarkRecoverRandomKey-8 10000 180636 ns/op
BenchmarkRecoverRandomKey-8 10000 181540 ns/op
BenchmarkRecoverRandomKey-8 10000 182409 ns/op
BenchmarkRecoverRandomKey-8 10000 180998 ns/op
BenchmarkRecoverRandomKey-8 10000 182619 ns/op
BenchmarkRecoverRandomKey-8 10000 181444 ns/op
BenchmarkRecoverRandomKey-8 10000 181436 ns/op
BenchmarkRecoverRandomKey-8 10000 181853 ns/op
BenchmarkRecoverRandomKey-8 10000 181480 ns/op
BenchmarkRecoverRandomKey-8 10000 181543 ns/op
BenchmarkRecoverRandomKey-8 10000 179329 ns/op
BenchmarkRecoverRandomKey-8 10000 179851 ns/op
BenchmarkRecoverRandomKey-8 10000 183947 ns/op
BenchmarkRecoverRandomKey-8 10000 181499 ns/op
BenchmarkRecoverRandomKey-8 10000 182488 ns/op
BenchmarkRecoverRandomKey-8 10000 182322 ns/op
BenchmarkRecoverRandomKey-8 10000 182712 ns/op
BenchmarkRecoverRandomKey-8 10000 181350 ns/op
BenchmarkRecoverRandomKey-8 10000 180476 ns/op
BenchmarkRecoverRandomKey-8 10000 182046 ns/op
BenchmarkRecoverRandomKey-8 10000 181832 ns/op
BenchmarkRecoverRandomKey-8 10000 182220 ns/op
BenchmarkRecoverRandomKey-8 10000 180848 ns/op
BenchmarkRecoverRandomKey-8 10000 180693 ns/op
BenchmarkRecoverRandomKey-8 10000 181920 ns/op
BenchmarkRecoverRandomKey-8 10000 180906 ns/op
BenchmarkRecoverRandomKey-8 10000 180879 ns/op
BenchmarkRecoverRandomKey-8 10000 181302 ns/op
BenchmarkRecoverRandomKey-8 10000 180943 ns/op
BenchmarkRecoverRandomKey-8 10000 181519 ns/op
BenchmarkRecoverRandomKey-8 10000 181740 ns/op
BenchmarkRecoverRandomKey-8 10000 182094 ns/op
BenchmarkRecoverRandomKey-8 10000 180572 ns/op
BenchmarkRecoverRandomKey-8 10000 180724 ns/op
BenchmarkRecoverRandomKey-8 10000 180819 ns/op
BenchmarkRecoverRandomKey-8 10000 181121 ns/op
BenchmarkRecoverRandomKey-8 10000 182439 ns/op
BenchmarkRecoverRandomKey-8 10000 182085 ns/op
BenchmarkRecoverRandomKey-8 10000 181923 ns/op
BenchmarkRecoverRandomKey-8 10000 179764 ns/op
BenchmarkRecoverRandomKey-8 10000 182494 ns/op
BenchmarkRecoverRandomKey-8 10000 182164 ns/op
BenchmarkRecoverRandomKey-8 10000 181428 ns/op
BenchmarkRecoverRandomKey-8 10000 181139 ns/op
BenchmarkRecoverRandomKey-8 10000 181456 ns/op
BenchmarkRecoverStaticKey-8 10000 168838 ns/op
BenchmarkRecoverStaticKey-8 10000 173375 ns/op
BenchmarkRecoverStaticKey-8 10000 165845 ns/op
BenchmarkRecoverStaticKey-8 10000 164923 ns/op
BenchmarkRecoverStaticKey-8 10000 165417 ns/op
BenchmarkRecoverStaticKey-8 10000 164284 ns/op
BenchmarkRecoverStaticKey-8 10000 163860 ns/op
BenchmarkRecoverStaticKey-8 10000 165285 ns/op
BenchmarkRecoverStaticKey-8 10000 167673 ns/op
BenchmarkRecoverStaticKey-8 10000 166810 ns/op
BenchmarkRecoverStaticKey-8 10000 163753 ns/op
BenchmarkRecoverStaticKey-8 10000 164854 ns/op
BenchmarkRecoverStaticKey-8 10000 164547 ns/op
BenchmarkRecoverStaticKey-8 10000 164808 ns/op
BenchmarkRecoverStaticKey-8 10000 162510 ns/op
BenchmarkRecoverStaticKey-8 10000 163936 ns/op
BenchmarkRecoverStaticKey-8 10000 166099 ns/op
BenchmarkRecoverStaticKey-8 10000 166227 ns/op
BenchmarkRecoverStaticKey-8 10000 165497 ns/op
BenchmarkRecoverStaticKey-8 10000 164814 ns/op
BenchmarkRecoverStaticKey-8 10000 166650 ns/op
BenchmarkRecoverStaticKey-8 10000 164252 ns/op
BenchmarkRecoverStaticKey-8 10000 165413 ns/op
BenchmarkRecoverStaticKey-8 10000 162902 ns/op
BenchmarkRecoverStaticKey-8 10000 166210 ns/op
BenchmarkRecoverStaticKey-8 10000 166647 ns/op
BenchmarkRecoverStaticKey-8 10000 164148 ns/op
BenchmarkRecoverStaticKey-8 10000 166246 ns/op
BenchmarkRecoverStaticKey-8 10000 164786 ns/op
BenchmarkRecoverStaticKey-8 10000 162850 ns/op
BenchmarkRecoverStaticKey-8 10000 166101 ns/op
BenchmarkRecoverStaticKey-8 10000 165516 ns/op
BenchmarkRecoverStaticKey-8 10000 163988 ns/op
BenchmarkRecoverStaticKey-8 10000 166334 ns/op
BenchmarkRecoverStaticKey-8 10000 165774 ns/op
BenchmarkRecoverStaticKey-8 10000 165664 ns/op
BenchmarkRecoverStaticKey-8 10000 163451 ns/op
BenchmarkRecoverStaticKey-8 10000 165433 ns/op
BenchmarkRecoverStaticKey-8 10000 165836 ns/op
BenchmarkRecoverStaticKey-8 10000 165845 ns/op
BenchmarkRecoverStaticKey-8 10000 164074 ns/op
BenchmarkRecoverStaticKey-8 10000 163286 ns/op
BenchmarkRecoverStaticKey-8 10000 165042 ns/op
BenchmarkRecoverStaticKey-8 10000 164497 ns/op
BenchmarkRecoverStaticKey-8 10000 166356 ns/op
BenchmarkRecoverStaticKey-8 10000 165894 ns/op
BenchmarkRecoverStaticKey-8 10000 167342 ns/op
BenchmarkRecoverStaticKey-8 10000 164854 ns/op
BenchmarkRecoverStaticKey-8 10000 164314 ns/op
BenchmarkRecoverStaticKey-8 10000 162959 ns/op
BenchmarkRecoverStaticKey-8 10000 164719 ns/op
BenchmarkRecoverStaticKey-8 10000 165784 ns/op
BenchmarkRecoverStaticKey-8 10000 167885 ns/op
BenchmarkRecoverStaticKey-8 10000 165046 ns/op
BenchmarkRecoverStaticKey-8 10000 164245 ns/op
BenchmarkRecoverStaticKey-8 10000 162999 ns/op
BenchmarkRecoverStaticKey-8 10000 165590 ns/op
BenchmarkRecoverStaticKey-8 10000 165287 ns/op
BenchmarkRecoverStaticKey-8 10000 164391 ns/op
BenchmarkRecoverStaticKey-8 10000 164458 ns/op
BenchmarkRecoverStaticKey-8 10000 164387 ns/op
BenchmarkRecoverStaticKey-8 10000 164237 ns/op
BenchmarkRecoverStaticKey-8 10000 163540 ns/op
BenchmarkRecoverStaticKey-8 10000 162709 ns/op
BenchmarkRecoverStaticKey-8 10000 163811 ns/op
BenchmarkRecoverStaticKey-8 10000 164798 ns/op
BenchmarkRecoverStaticKey-8 10000 166401 ns/op
BenchmarkRecoverStaticKey-8 10000 164612 ns/op
BenchmarkRecoverStaticKey-8 10000 162752 ns/op
BenchmarkRecoverStaticKey-8 10000 164301 ns/op
BenchmarkRecoverStaticKey-8 10000 164694 ns/op
BenchmarkRecoverStaticKey-8 10000 164429 ns/op
BenchmarkRecoverStaticKey-8 10000 162939 ns/op
BenchmarkRecoverStaticKey-8 10000 163377 ns/op
BenchmarkRecoverStaticKey-8 10000 167924 ns/op
BenchmarkRecoverStaticKey-8 10000 165666 ns/op
BenchmarkRecoverStaticKey-8 10000 164650 ns/op
BenchmarkRecoverStaticKey-8 10000 162955 ns/op
BenchmarkRecoverStaticKey-8 10000 165163 ns/op
BenchmarkRecoverStaticKey-8 10000 165716 ns/op
BenchmarkRecoverStaticKey-8 10000 162732 ns/op
BenchmarkRecoverStaticKey-8 10000 164756 ns/op
BenchmarkRecoverStaticKey-8 10000 166262 ns/op
BenchmarkRecoverStaticKey-8 10000 164641 ns/op
BenchmarkRecoverStaticKey-8 10000 163371 ns/op
BenchmarkRecoverStaticKey-8 10000 163357 ns/op
BenchmarkRecoverStaticKey-8 10000 163438 ns/op
BenchmarkRecoverStaticKey-8 10000 164566 ns/op
BenchmarkRecoverStaticKey-8 10000 165954 ns/op
BenchmarkRecoverStaticKey-8 10000 166526 ns/op
BenchmarkRecoverStaticKey-8 10000 163810 ns/op
BenchmarkRecoverStaticKey-8 10000 164543 ns/op
BenchmarkRecoverStaticKey-8 10000 166676 ns/op
BenchmarkRecoverStaticKey-8 10000 164059 ns/op
BenchmarkRecoverStaticKey-8 10000 165562 ns/op
BenchmarkRecoverStaticKey-8 10000 163955 ns/op
BenchmarkRecoverStaticKey-8 10000 165858 ns/op
BenchmarkRecoverStaticKey-8 10000 165616 ns/op
BenchmarkRecoverStaticKey-8 10000 162487 ns/op
BenchmarkRecoverStaticKey-8 10000 163373 ns/op
ok github.com/ethereum/go-ethereum/crypto/secp256k1 527.948s
Times of BenchRecoverRandomKey:
[180614, 181670, 181151, 181454, 180784, 181952, 182198, 181652,
183132, 186662, 181704, 180879, 181203, 182718, 181606, 182312,
182435, 180473, 181436, 181346, 181564, 181657, 182975, 182490,
182711, 182253, 183049, 181695, 182140, 181567, 182138, 181100,
181948, 180531, 181415, 181142, 182449, 182907, 180279, 181501,
181205, 180825, 181620, 182180, 180031, 181349, 181511, 180554,
180933, 180489, 180893, 181259, 181041, 181007, 180477, 180636,
181540, 182409, 180998, 182619, 181444, 181436, 181853, 181480,
181543, 179329, 179851, 183947, 181499, 182488, 182322, 182712,
181350, 180476, 182046, 181832, 182220, 180848, 180693, 181920,
180906, 180879, 181302, 180943, 181519, 181740, 182094, 180572,
180724, 180819, 181121, 182439, 182085, 181923, 179764, 182494,
182164, 181428, 181139, 181456]
Standard Deviation: 952.285171617
Times of BenchRecoverStaticKey:
[168838, 173375, 165845, 164923, 165417, 164284, 163860, 165285,
167673, 166810, 163753, 164854, 164547, 164808, 162510, 163936,
166099, 166227, 165497, 164814, 166650, 164252, 165413, 162902,
166210, 166647, 164148, 166246, 164786, 162850, 166101, 165516,
163988, 166334, 165774, 165664, 163451, 165433, 165836, 165845,
164074, 163286, 165042, 164497, 166356, 165894, 167342, 164854,
164314, 162959, 164719, 165784, 167885, 165046, 164245, 162999,
165590, 165287, 164391, 164458, 164387, 164237, 163540, 162709,
163811, 164798, 166401, 164612, 162752, 164301, 164694, 164429,
162939, 163377, 167924, 165666, 164650, 162955, 165163, 165716,
162732, 164756, 166262, 164641, 163371, 163357, 163438, 164566,
165954, 166526, 163810, 164543, 166676, 164059, 165562, 163955,
165858, 165616, 162487, 163373]
Standard Deviation: 1568.28247185
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment