return [...bytes].map(b => b.toString(16).padStart(2, '0')).join('')
}
+ /**
+ * @param {number[]} times
+ * @param {string} type
+ * @param {number} effort
+ */
function average (times, type, effort) {
const averages = stats(times)
const title = type === 'WebGPU'
logger.log('%TESTING COMPLETE', 'color:orange;font-weight:bold')
}
+ /**
+ * @param {InputEvent} event
+ */
function startValidation (event) {
const difficulty = document.getElementById('difficulty')?.value
const work = document.getElementById('work')?.value
document.getElementById('hash').addEventListener('input', startValidation)
document.getElementById('api').addEventListener('input', startValidation)
+ /**
+ * @param {InputEvent} event
+ */
function startTest (event) {
event.target.disabled = true
const api = document.getElementById('api')