Skip to content

Conversation

@manuelbarbas
Copy link

This mining in parallel threads should be 2 to 4 times faster.

I have a different branch where I run those tests there I can show. Nevertheless I'll drop bellow a snapshot of a test of 200 consecutive mines:

...
No Threads Used
Duration: 83.46804200000001 ms
Found gas price: 0x7e78c8d8349f2a7be88f1b1b0fc4ef3e24ff04ab4242f505af776914510dc488
With Threads Used
Number threads 7
Duration: 5.3473749999999995 ms
Found gas price: 0x96b5717e8dc962658024b611c417b76001ebe0afdf0cce3407d93afa05a3b64f
No Threads Used
Duration: 439.514417 ms
Found gas price: 0x37f0db5d41ad9925c74c6e23fc4a24f1d9993c6d623a8e80d4fc326927682618
With Threads Used
Number threads 7
Duration: 90.587625 ms
Found gas price: 0x8c3c75e3119a3d8b3af97b00f95bd7bb61b3ed3894128af6a8b1ba50f9bfa6ac
No Threads Used
Duration: 237.67595799999998 ms
Found gas price: 0x124f0208b56c954eb0334d348cf9542ae1320612d456ace9580c54a1e55a0dc3
With Threads Used
Number threads 7
Duration: 30.72675 ms
Found gas price: 0x19cd68662f04bce185e247218b1f4fa3afbc8e675b3f1db6c46e27e24cb81918
No Threads Used
Duration: 22.635542 ms
Found gas price: 0xfbbc49c4f69bb20224c52caecddf57a238213a5a139e2f44b330237583f49093
With Threads Used
Number threads 7
Duration: 291.37008399999996 ms
Found gas price: 0x14189a28a3816e86ca223c7383f3a22d75d733b5bfcf76f7a6a6c5161689b2d6
No Threads Used
Duration: 313.287458 ms
Found gas price: 0xd8539fcc5277271ee5050d1f8307f083c1af0775370ac7744a94de4ebb0da033
With Threads Used
Number threads 7
Duration: 139.390125 ms
Found gas price: 0x860ef5c7e76a17be8428ea53ea5931886d005c8c3a8c75a8304b2cfa01bd3e84

Number of runs: 200
Average Duration No Threads: 486.723854765 ms
Average Duration With 7 Threads: 154.99360519499996 ms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant