RandomX BONANZA


in browser monero miner

for implementation details, see randomx-bonanza

Remember coinhive? look where it redirects these days, monero cryptojacking is dead, it has been so since the 2019s transition to RandomX, one of the side effects (? or perhaps a deliberate feature) of the ASIC resistant design is that it is now close to impossible to run the algo efficiently in contemporary web browsers, there are some implementations out there, mostly dogbone, you are looking at ~3-5% of native execution performance at best.

Randomx.js is pretty much the only thing out there that actually works, the author has made a nice presentation vid about it, great, except for the fact that it only supports light mode, to cite the readme:

>Mining with an initialised dataset (2 GiB allocation) is not supported (though easy to implement), no one on earth would give a webpage multiple gigabytes of memory. Light/verification mode only.

Our implementation supports the mode that's actually intended for mining moneros, it builds the full dataset in less than 10s on most modern cpus, yes, it is ram heavy, but fortunately, idle ram abundant.


performance

The performance ratio vs native execution can be framed to make it sound better than it is, best case scenario being comparing single threaded perf, worst case for the number being multithreaded native perf with hugepages on, well, depending on how you want to look at it, we land somewhere between 10 - 25 % of native perf. M4 base running 4 threads yields just around 400 h/s, this is the pragmatic sweet spot, the user doesn't even notice.


usage

Press START to start mining, in order to change the number of threads you want to mine with, you will have to first set the desired thread count and then hit the REBUILD button, if anything seems amiss, check the logs.

The wallet setup is simple, expand the WALLET SETUP and dial in the address you want to mine to, choose the pool preset and hit SET. There are two pool presets, prefer supportxmr over moneroocean, as moneroocean limit the per ip number of active workers, it's likely that our proxy is going to get banned. Moneroocean serves lower difficulty jobs, so you might see accepted shares sooner.

You can monitor the performance of your worker on the appropriate pool's dash, visit supportxmr.com or moneroocean.stream, paste the address you've set in and you're good. Supportxmr shows you your worker a moment after the first valid share lands, moneroocean tends to lag a little, it can take up to a few minutes after hitting shares for the worker to show up in the dash, be patient.

If you can't connect to a pool it might be because you got rate limited or banned by our proxy, it's also possible that the proxy itself is down, in that case, you can pull the repo and spin up a demo locally.


potential use cases

cryptojacking, pow-gated access, fun online, consensual e-support


disclaimer

don't mine to a wallet you don't want to be associated with the machine you are mining from

randomx bonanza
Next share ETA-- · A/R0/0 · 0H/s
Shares
0 / 0
accepted / rejected
Mode
standby
JIT
--
Status
disconnected
Hashrate
▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱ - H/s
no samples yet
Dataset build
▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱ - %
not started
Next share ETA
▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱ - s
not mining
Wallet setup
Wallet
payout destination · Set tests pool handshake
Worker
identifier for this miner (Stratum pass field)
Preset
fills host + port (wallet unchanged)
Pool
apply on next Start (or Rebuild)
Thread count
Threads
rebuild to adjust thread count
⫘⫘⫘⫘⫘⫘⫘⫘⫘⫘⫘ =^._.^= randomx_bonanza v0.0.1-alpha ⫘⫘⫘⫘⫘⫘⫘⫘⫘⫘⫘