const arr = []
const RANDEXP = 20
const ODDEXP = 4
for (let i = 0; i < 1000; i += RANDEXP / ODDEXP) {
const rand = ~~(Math.random() * (1 << RANDEXP))
for (let j = (1 << ODDEXP) - 1; j < 1 << RANDEXP; j <<= ODDEXP) {
if (rand & j) {
arr.push('#')
} else {
arr.push('\u{1f452}')
}
}
}
const testString = arr.join()
Initializing...
| Test Case | Ops/sec | |
|---|---|---|
| Regex with unicode flag | | ready |
| Regex matching surrogate pairs | | ready |
| Array from | | ready |
| Array spread | | ready |
| Regex iterating over surrogate pairs with ".matchAll" | | ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.