<center>https://cdn.discordapp.com/attachments/404587860872921088/405329216280723458/challenge.png</center> For each tutorial we release there will be a relevant challenge where the winner receives 1 STEEM! ### Challenge Take the code from the tutorial from [here](https://github.com/amosbastian/steempy-tutorials/tree/master/part_21) and change it to be able to do the following 1. Determine the most optimal amount of threads for your CPU and plot this. Time each session and use this data to make a plot which shows where there is no more benefit of adding any additional threads. To keep it simple stick to a fixed block count of 1000. That's it! Good luck to everyone participating! ### Deadline The prize money will be rewarded to the person that solves the problem first. If there is no solution within 7 days after this post has been submitted the prize pool expires. ### Relevant Tutorial - [Part 21: Use Multi Threading To Analyse The Steem Blockchain In Parallel](https://steemit.com/utopian-io/@steempytutorials/part-21-use-multi-threading-to-analyse-the-steem-blockchain-in-parallel) --- If you have questions about the tutorial or the challenge then don't hesitate to comment below or contact us on [Discord](https://discord.gg/rYTV87W)!
author | steempytutorials |
---|---|
permlink | daily-steem-python-challenge-21-win-1-steem |
category | programming |
json_metadata | {"tags":["programming","python","contest","bot","steemdev"],"image":["https://cdn.discordapp.com/attachments/404587860872921088/405329216280723458/challenge.png"],"links":["https://github.com/amosbastian/steempy-tutorials/tree/master/part_21","https://steemit.com/utopian-io/@steempytutorials/part-21-use-multi-threading-to-analyse-the-steem-blockchain-in-parallel","https://discord.gg/rYTV87W"],"app":"steemit/0.1","format":"markdown"} |
created | 2018-02-05 05:40:06 |
last_update | 2018-02-05 05:40:06 |
depth | 0 |
children | 10 |
last_payout | 2018-02-12 05:40:06 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 2.586 HBD |
curator_payout_value | 0.050 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,261 |
author_reputation | 31,094,047,689,691 |
root_title | "Daily Steem-Python Challenge #21, Win 1 Steem!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 35,062,275 |
net_rshares | 386,596,742,247 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
marius19 | 0 | 0 | 100% | ||
anomaly | 0 | 200,977,125 | 1% | ||
augistune | 0 | 0 | 100% | ||
melip | 0 | 0 | 50% | ||
iqbalzarra | 0 | 0 | 77.53% | ||
juliank | 0 | 331,299,293,922 | 30% | ||
gregario | 0 | 12,846,167,366 | 100% | ||
brownlady | 0 | 0 | 100% | ||
edyfaisal | 0 | 0 | 100% | ||
chitnaingoo | 0 | 0 | 100% | ||
arvindkumar | 0 | 0 | 100% | ||
michelle96 | 0 | 0 | 100% | ||
duekie | 0 | 0 | 100% | ||
shadly | 0 | 0 | 100% | ||
utzo | 0 | 605,527,536 | 100% | ||
nathanedge | 0 | 0 | 100% | ||
non-block | 0 | 0 | 100% | ||
talhashafiq119 | 0 | 613,696,269 | 100% | ||
rahmatmirza | 0 | 606,802,089 | 100% | ||
platin01 | 0 | 0 | 100% | ||
shintamonica | 0 | 0 | 100% | ||
makerhacks | 0 | 10,908,574,960 | 20% | ||
fidel66 | 0 | 0 | 100% | ||
munazirpuwan | 0 | 0 | 100% | ||
riad789 | 0 | 567,548,504 | 100% | ||
amosbastian | 0 | 15,883,466,426 | 100% | ||
auliyatullah | 0 | 0 | 100% | ||
oups | 0 | 3,018,534,661 | 100% | ||
fisherck | 0 | 1,464,541,325 | 100% | ||
platomaniac | 0 | 0 | 100% | ||
arfah | 0 | 552,311,567 | 100% | ||
steempytutorials | 0 | 4,435,356,348 | 100% | ||
raquel.ramirezv | 0 | 225,592,808 | 100% | ||
palik | 0 | 613,964,701 | 100% | ||
priyalath5 | 0 | 0 | 100% | ||
victorshek | 0 | 435,708,515 | 100% | ||
alfiannurmedia | 0 | 0 | 100% | ||
rahmed | 0 | 0 | 100% | ||
madimancity | 0 | 0 | 100% | ||
luj1 | 0 | 567,890,469 | 100% | ||
imamw | 0 | 0 | 100% | ||
kilianparadise | 0 | 0 | 100% | ||
bjoernb | 0 | 426,675,836 | 100% | ||
sang-pemangsa | 0 | 0 | 100% | ||
bloodviolet | 0 | 564,587,711 | 100% | ||
pro-steemit | 0 | 0 | 100% | ||
ysmn | 0 | 0 | 100% | ||
rahmadsanjaya | 0 | 0 | 100% | ||
graciousrecipe | 0 | 0 | 100% | ||
koaungkyawtun | 0 | 0 | 100% | ||
murizalpangeran | 0 | 0 | 100% | ||
cccp | 0 | 615,000,126 | 100% | ||
darmawan520 | 0 | 0 | 0% | ||
ijunkazama | 0 | 0 | 100% | ||
raziakmal | 0 | 0 | 100% | ||
fikarvox | 0 | 0 | 100% | ||
andreigavajuc | 0 | 89,097,230 | 100% | ||
febrisahputra04 | 0 | 0 | 100% | ||
herryc | 0 | 0 | 100% | ||
nandagayo | 0 | 0 | 100% | ||
panquekafe | 0 | 0 | 100% | ||
syafriadi | 0 | 0 | 100% | ||
musafir79 | 0 | 55,426,753 | 100% | ||
muhammadazzikra | 0 | 0 | 100% | ||
schase | 0 | 0 | 100% | ||
jhon2 | 0 | 0 | 100% | ||
jesterlem | 0 | 0 | 100% | ||
msytiqueblinkx | 0 | 0 | 100% | ||
kabirlec9 | 0 | 0 | 100% | ||
homeraakter74 | 0 | 0 | 100% | ||
prasannab | 0 | 0 | 100% | ||
saifulafwadi | 0 | 0 | 100% | ||
sandyprasasty | 0 | 0 | 100% | ||
abdullah67 | 0 | 0 | 100% | ||
mrduo | 0 | 0 | 100% | ||
boyhaqii | 0 | 0 | 100% | ||
zuky93 | 0 | 0 | 100% | ||
williamfarjana16 | 0 | 0 | 100% | ||
zafrin | 0 | 0 | 100% | ||
golamor | 0 | 0 | 100% | ||
jahidrony | 0 | 0 | 100% | ||
akmalrazi | 0 | 0 | 100% | ||
maquemali | 0 | 0 | 100% | ||
danil87 | 0 | 0 | 100% | ||
azmazm | 0 | 0 | 100% | ||
macro-good | 0 | 0 | 100% | ||
josueyjenna | 0 | 0 | 100% |
[Here's](https://pastebin.com/spSBtW15) my solution I've assumed that the number of threads is optimal, when the addition of a new one improves the execution time of the algorithm by less than 5%. you can change this value by modifying STOP_CONDITION variable. I've also changed `head_block = blockchain.get_current_block_num()-int(sys.argv[1])` to `head_block = blockchain.get_current_block_num()`, which I believe is correct
author | cccp |
---|---|
permlink | re-steempytutorials-daily-steem-python-challenge-21-win-1-steem-20180207t183104297z |
category | programming |
json_metadata | {"tags":["programming"],"links":["https://pastebin.com/spSBtW15"],"app":"steemit/0.1"} |
created | 2018-02-07 18:31:06 |
last_update | 2018-02-07 18:31:06 |
depth | 1 |
children | 1 |
last_payout | 2018-02-14 18:31:06 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 431 |
author_reputation | 0 |
root_title | "Daily Steem-Python Challenge #21, Win 1 Steem!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 35,722,230 |
net_rshares | 0 |
I really very excited for it I already learn python very easy language obviously it is a high level language which is easy for human I am ready
author | komail |
---|---|
permlink | re-cccp-re-steempytutorials-daily-steem-python-challenge-21-win-1-steem-20180214t190255374z |
category | programming |
json_metadata | {"tags":["programming"],"app":"steemit/0.1"} |
created | 2018-02-14 19:03:00 |
last_update | 2018-02-14 19:03:45 |
depth | 2 |
children | 0 |
last_payout | 2018-02-21 19:03:00 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 144 |
author_reputation | 6,633,855,647 |
root_title | "Daily Steem-Python Challenge #21, Win 1 Steem!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 37,550,277 |
net_rshares | 0 |
How would I share my solution? Paste the relevant code as a comment?
author | daveiano |
---|---|
permlink | re-steempytutorials-daily-steem-python-challenge-21-win-1-steem-20180221t093636090z |
category | programming |
json_metadata | {"tags":["programming"],"app":"steemit/0.1"} |
created | 2018-02-21 09:36:36 |
last_update | 2018-02-21 09:36:54 |
depth | 1 |
children | 0 |
last_payout | 2018-02-28 09:36:36 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 68 |
author_reputation | 4,366,297,315 |
root_title | "Daily Steem-Python Challenge #21, Win 1 Steem!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 39,302,709 |
net_rshares | 0 |
Tutorial yang bagus @ steempytutorials
author | drowkeudrow |
---|---|
permlink | re-steempytutorials-daily-steem-python-challenge-21-win-1-steem-20180207t154040933z |
category | programming |
json_metadata | {"tags":["programming"],"app":"steemit/0.1"} |
created | 2018-02-07 15:40:45 |
last_update | 2018-02-07 15:42:21 |
depth | 1 |
children | 0 |
last_payout | 2018-02-14 15:40:45 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 39 |
author_reputation | 3,109,901,127,459 |
root_title | "Daily Steem-Python Challenge #21, Win 1 Steem!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 35,690,013 |
net_rshares | 0 |
Excellent information. Thanks alot.
author | graciousrecipe |
---|---|
permlink | re-steempytutorials-daily-steem-python-challenge-21-win-1-steem-20180313t090807681z |
category | programming |
json_metadata | {"tags":["programming"],"app":"steemit/0.1"} |
created | 2018-03-13 09:08:21 |
last_update | 2018-03-13 09:08:21 |
depth | 1 |
children | 0 |
last_payout | 2018-03-20 09:08:21 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 35 |
author_reputation | -602,091,313,971 |
root_title | "Daily Steem-Python Challenge #21, Win 1 Steem!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 44,096,974 |
net_rshares | 0 |
THANK YOU FOR THIS INCREDIBLE INFORMATION
author | muhammadazzikra |
---|---|
permlink | re-steempytutorials-daily-steem-python-challenge-21-win-1-steem-20180306t202616587z |
category | programming |
json_metadata | {"tags":["programming"],"app":"steemit/0.1"} |
created | 2018-03-06 20:26:21 |
last_update | 2018-03-06 20:26:21 |
depth | 1 |
children | 0 |
last_payout | 2018-03-13 20:26:21 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 41 |
author_reputation | 319,634,092,040 |
root_title | "Daily Steem-Python Challenge #21, Win 1 Steem!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 42,703,880 |
net_rshares | 0 |
where to submit the solution?
author | paulasepistle |
---|---|
permlink | re-steempytutorials-daily-steem-python-challenge-21-win-1-steem-20180327t113330377z |
category | programming |
json_metadata | {"tags":["programming"],"app":"steemit/0.1"} |
created | 2018-03-27 11:33:30 |
last_update | 2018-03-27 11:33:30 |
depth | 1 |
children | 0 |
last_payout | 2018-04-03 11:33:30 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 29 |
author_reputation | 8,402,037,074 |
root_title | "Daily Steem-Python Challenge #21, Win 1 Steem!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 46,878,264 |
net_rshares | 0 |
siplah pokoknya
author | rahmadsanjaya |
---|---|
permlink | re-steempytutorials-daily-steem-python-challenge-21-win-1-steem-20180217t163528534z |
category | programming |
json_metadata | {"tags":["programming"],"app":"steemit/0.1"} |
created | 2018-02-17 16:35:39 |
last_update | 2018-02-17 16:35:39 |
depth | 1 |
children | 0 |
last_payout | 2018-02-24 16:35:39 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 15 |
author_reputation | 156,085,468,790 |
root_title | "Daily Steem-Python Challenge #21, Win 1 Steem!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 38,296,167 |
net_rshares | 0 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
lorner | 0 | 0 | 100% |
https://steemit.com/smartphonephotography/@shirishpaudel/beautiful-flower-50c0af8c34f74
author | shirishpaudel |
---|---|
permlink | re-steempytutorials-daily-steem-python-challenge-21-win-1-steem-20180216t065625438z |
category | programming |
json_metadata | {"tags":["programming"],"links":["https://steemit.com/smartphonephotography/@shirishpaudel/beautiful-flower-50c0af8c34f74"],"app":"steemit/0.1"} |
created | 2018-02-16 06:56:33 |
last_update | 2018-02-16 06:56:33 |
depth | 1 |
children | 0 |
last_payout | 2018-02-23 06:56:33 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 87 |
author_reputation | 4,996,979,925 |
root_title | "Daily Steem-Python Challenge #21, Win 1 Steem!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 37,933,573 |
net_rshares | 0 |
dead?
author | tiboine |
---|---|
permlink | re-steempytutorials-daily-steem-python-challenge-21-win-1-steem-20180428t152650687z |
category | programming |
json_metadata | {"tags":["programming"],"app":"steemit/0.1"} |
created | 2018-04-28 15:26:51 |
last_update | 2018-04-28 15:26:51 |
depth | 1 |
children | 0 |
last_payout | 2018-05-05 15:26:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 5 |
author_reputation | 2,110,692,062 |
root_title | "Daily Steem-Python Challenge #21, Win 1 Steem!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 52,662,714 |
net_rshares | 0 |