Bitcoin Forum
June 28, 2024, 07:14:25 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: noob question  (Read 161 times)
march_hare (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
March 27, 2018, 05:36:31 PM
Last edit: March 27, 2018, 06:05:34 PM by march_hare
 #1

Hello,

Can you please be so kind and explain how this scripts are working?
I'm mining XMR with my CPU, and my hash rate is around 150h/s (i5). i installed coinhive on a website, and the hashrate is 50h/s. why this difference?
Also, I have a plan involving this kind of script, and I don't understand the payout method of this scripts (coinhive, gridcash, etc)
I`m using this calculator:
https://www.cryptocompare.com/mining/calculator/xmr?HashingPower=200000&HashingUnit=H%2Fs&PowerConsumption=10&CostPerkWh=0&MiningPoolFee=2

can i deduce that 10.000 visitors that will mine 24/7 on my website, will mine the ammount calculated here? -> i put an avg of 20h/s * 10.000 miners and the result is 20xmr per month.

How can i calculate the result based on the payment method of coinhive which is 0.000029 XMR per 1Million hashes?

many thanks!
shaw1
Sr. Member
****
Offline Offline

Activity: 504
Merit: 297

CryptoTalk.Org - Get Paid for every Post!


View Profile
March 27, 2018, 08:39:35 PM
 #2

Hi!

I'm by far no expert, but I'll give this a shot.

As per the first question. How the script works. Almost all scripts available originated from (read: stolen) Coinhive. They created a javascript mining script that is capable of mining cryptonight based coins. Basically, my understanding is that they took C/C++ source code for a mining script, compiled it to JS via Emscripten, and have a functioning miner in webpages, because of that.

About the speed. Yep. It's slow. Very slow. Basically, whether the browser uses JIT compiling or not, the process is going to be far less efficient than running bare metal, so those numbers sound pretty much right on.

Every different site uses a different payout method. Most are going to pay out in Monero. (XMR). That is the cryptonight coin that most web miners choose to mine. The catch is, lots of these sites have a high withdrawal limit. Say, .3 XMR. It's going to take a while to earn over 60 dollars using a webminer... So you'll want to be careful about the minimum withdrawals supported by whatever site you use.

About your calculator.
No.
In that hypothetical situation, you will not be earning anywhere near that sum, because of one important thing, that most web miners don't make obvious. HUGE fees. Coinhive is (or was. Don't know as of now.) 30%. So that means, in that case, you wouldn't earn 20 XMR. You'd walk away with about 14.

So how do you calculate how Coinhive gets their payment method?
Well. Let's go in reverse.

So we know they pay: 0.000029 XMR per 1Million hashes.
So that means that they pay out: (.000029 / 1,000,000) XMR per hash solved.

Let's use your example with 20 H/s and 10,000 miners.
You'd be making 200,000 hashes per second. 200,000 * (.000029 / 1,000,000) XMR / Second.
Multiply this out to months.  (200,000 * (.000029 / 1,000,000)) * 60 * 60 * 24 * 30 = ~ 15.0336 XMR / month.

So I wasn't that far off, with my first guess. Smiley

To be perfectly honest, it is hard to make money using web miners. You're going to need to do lots of hard work, and have lots of luck.
If you have any other questions, I'm more than happy to answer them. Smiley

 
                                . ██████████.
                              .████████████████.
                           .██████████████████████.
                        -█████████████████████████████
                     .██████████████████████████████████.
                  -█████████████████████████████████████████
               -███████████████████████████████████████████████
           .-█████████████████████████████████████████████████████.
        .████████████████████████████████████████████████████████████
       .██████████████████████████████████████████████████████████████.
       .██████████████████████████████████████████████████████████████.
       ..████████████████████████████████████████████████████████████..
       .   .██████████████████████████████████████████████████████.
       .      .████████████████████████████████████████████████.

       .       .██████████████████████████████████████████████
       .    ██████████████████████████████████████████████████████
       .█████████████████████████████████████████████████████████████.
        .███████████████████████████████████████████████████████████
           .█████████████████████████████████████████████████████
              .████████████████████████████████████████████████
                   ████████████████████████████████████████
                      ██████████████████████████████████
                          ██████████████████████████
                             ████████████████████
                               ████████████████
                                   █████████
CryptoTalk.org| 
MAKE POSTS AND EARN BTC!
🏆
march_hare (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
March 28, 2018, 06:18:51 PM
 #3

thank you so much, friend! Your answer explains everything I wanted to know.

I`m working on a project that will involve web mining and right now i`m still learning basic stuff.

thanks again!
shaw1
Sr. Member
****
Offline Offline

Activity: 504
Merit: 297

CryptoTalk.Org - Get Paid for every Post!


View Profile
March 28, 2018, 06:31:22 PM
 #4

No problem at all!  Smiley

Glad to help a fellow visionary.

Once you get your idea up and running, bump this thread with an update, so that we can see what awesome project you have made!

 
                                . ██████████.
                              .████████████████.
                           .██████████████████████.
                        -█████████████████████████████
                     .██████████████████████████████████.
                  -█████████████████████████████████████████
               -███████████████████████████████████████████████
           .-█████████████████████████████████████████████████████.
        .████████████████████████████████████████████████████████████
       .██████████████████████████████████████████████████████████████.
       .██████████████████████████████████████████████████████████████.
       ..████████████████████████████████████████████████████████████..
       .   .██████████████████████████████████████████████████████.
       .      .████████████████████████████████████████████████.

       .       .██████████████████████████████████████████████
       .    ██████████████████████████████████████████████████████
       .█████████████████████████████████████████████████████████████.
        .███████████████████████████████████████████████████████████
           .█████████████████████████████████████████████████████
              .████████████████████████████████████████████████
                   ████████████████████████████████████████
                      ██████████████████████████████████
                          ██████████████████████████
                             ████████████████████
                               ████████████████
                                   █████████
CryptoTalk.org| 
MAKE POSTS AND EARN BTC!
🏆
march_hare (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
March 28, 2018, 10:03:30 PM
 #5

My idea is simply put... brilliant, and i can have it up and running in  an instant, but the issue is that i misunderstood how things are working.
i have calculated everything based on cryptocompare mining calculator: my hash rate on a coinhive miner times 10.000 miners. Smiley
(simply put, based on cryptocompare, an average of 100h/s x 10.000 miners will give you 111 XMR per month)
and the figures where pretty good.

But the reality is what you have calculated.
hash rate is in reality 20h/s, also with the payment of coinhive => 15 XMR/month ...and all at once is not that good.
I have to rethink everything Smiley
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!