Validate UTF-8
Return true if the input bytes are well-formed UTF-8, otherwise false.
- Input
- Any bytes
- Output
- ASCII true or false, without a newline
- Tests
- 7,246 inputs
OpenAI: 1 of 1
Leaderboards
- Fastest benchmark
- 2.52 ms #1 patrickgwsmith SIMD
- Fastest suite
- 5710.81 ms #1 patrickgwsmith SIMD
- Smallest Wasm
- 1.3 KiB #1 patrickgwsmith
Size and speed
Every benchmarked submission by gzipped Wasm size and median benchmark time, to see whether getting smaller costs speed. Two views of the same data.
Times 1 of these in your browser, one at a time.
Fastest by language
No submissions without SIMD yet.
Smallest download by language
Open for submissions
Submit in the browser, or through MCP with the challenge slug validate_utf8.