(size)
| 22 | } |
| 23 | |
| 24 | function makeAsciiString(size) { |
| 25 | const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_'; |
| 26 | let out = ''; |
| 27 | for (let i = 0, j = 0; i < size; i++, j = (j + 7) % chars.length) out += chars[j]; |
| 28 | return out; |
| 29 | } |
| 30 | |
| 31 | function main({ type, len, n }) { |
| 32 | // Scale iterations so that total processed bytes roughly constant around n*4096 bytes. |