str2ab vs textencoder apiFastest: str2ab (2.6x faster)
2,028,270 ops/sec
789,292 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| str2ab | |
| textencoder api |
| Test name | Executions per second |
|---|---|
| ✓ textencoder api | 2,783,721 Ops/sec |
| str2ab | 1,336,300 Ops/sec |