WebGPU compute shader babylon.js vs plain js speed comparison

You don’t measure the same thing, because StorageBuffer.read postpone the read to the end of the frame, so that it happens after the command buffer has been submitted:

1 Like