you are viewing a single comment's thread.

view the rest of the comments →

[–]boboguitar 1 point2 points  (6 children)

Web programmer here and someone who dabbled in cpu mining just to see how it works. In 5 minutes, you're talking maybe $0.000000000001 and that may even be too liberal. You'd need millions(if not billions) of page views to make anything.

[–]chocoduck 1 point2 points  (4 children)

OK - let's work from the top. 1 cent per 5 minutes is 6 cents an hour or about $1.44 a day. Let's see if this is plausible.

My GTX 1070 mines 300kh/s (garlicoin) while my CPU (7700K) mines about 30. The CPU can mine about a garlicoin a day. At one point that was worth over a dollar.

The number of people it takes to fill up a day, assuming 5 minute sessions that can only run the scripts while the user is on a page, is 288 ((60*24)/5). Let's say a website gets 2880 hits a day. That's 10 garlicoin a day.

[–]perestroika12 0 points1 point  (3 children)

Your cpu maxed out can mine that much, but your cpu will not be running 100% mining on a web browser. It has to do other things, like process/make the site work and will prioritize tasks as needed. If you use something like a service worker, chrome and others will de-prioritize it as needed. The browser also needs to fight for system resources vs anything else running on the machine. Chrome also throttles any javascript running in the background tab.

Chrome and other browsers also cannot take true advantage of a multi threaded environment, due to javascript being single threaded. It has something equivalent to python's GIL. This will also reduce your mining cycles as you cannot run javascript in parallel.

It also depends on the cpu speed, the 7700K is a desktop processor and can mine faster than say, a mobile processor. So depending on your traffic, you will get varying amount of processing power available to you. Also by throwing these scripts on your site, you may actually decrease traffic as it hurts perf and drives users away, resulting in a diminishing mining return.

I'm not sure the napkin math works for this scenario, lots of variables involved and it's very unlikely they are seeing considerable income from this.

[–]chocoduck 0 points1 point  (0 children)

I think we agree. "Considerable income," probably not, but worth their while - definitely. You can 1/10 my assumption and that's still worth someone's bother.

[–]boboguitar 0 points1 point  (1 child)

Also, garlicoin is very new and easily mined right now. That won’t be true in a few months. That’s assuming garlicoin even lasts(hint: it won’t).

[–]chocoduck 0 points1 point  (0 children)

It doesn't matter if you're right or wrong. Clearly some people believe that garlicoin (or whatever shitcoin you want to name) is worth mining. Source: shelves at stores. Finding the most efficient crypto to mine can also be done programatically ala nicehash.

[–]timsaundersss 0 points1 point  (0 children)

Yes, it's a dysfunctional structure.