demo · v132

Request.bytes() and Response.bytes()

Type a URL, fetch it, and compare timing for response.bytes() (one allocation) against response.arrayBuffer() + new Uint8Array() (two allocations). The first 64 bytes are previewed.

checking support…

response.bytes()

ms (single allocation)

arrayBuffer() → Uint8Array

ms (double allocation)

first 64 bytes

see also