I'm trying to make a webpage that when the user goes to the page and presses the test button it will calculate the current user's hardware hashrate and return the average hash rate for that hardware. I want to be able to give the user options of GPU and CPU.
I don't know how to test a CPU and GPU in a webpage to give them the results. I also don't know how to calculate a hashrate.
I'm not mining on the page this will be a hardware hashrate tester.