unlock B and W (v2)

Revision 2 of this benchmark created on


Description

Unlock two keyboard keys (key "B" and key "W")

Setup

/* (async function lockBW() {
await navigator.keyboard.lock(["KeyB", "KeyW"])
deferred.resolve();
})() */

Test runner

Ready to run.

Testing in
TestOps/sec
unlock B then unlock W
(async function test1() {
	await navigator.keyboard.unlock(["KeyB"])
	await navigator.keyboard.unlock(["KeyW"])
	deferred.resolve();
})()
ready
Promise.all(<2 promises>)
(async function test2() {
await Promise.all([navigator.keyboard.unlock(["KeyB"]), navigator.keyboard.unlock(["KeyW"])])
 deferred.resolve();
})()
ready
a uniq call: unlock()
(async function test3() {
	await navigator.keyboard.unlock(["KeyB", "KeyW"])
	deferred.resolve();
})()
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.