Fastest: encodeURIComponent (1.3x faster)
662,627 ops/sec
511,704 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.