Benchmark memcpy between host and device memories

Compare direct

for i in 0..n {
  dev[i] = host[i];
}

vs memcpy

host.copy_from(&dev)

using criterion.rs. Result run on my PC:

image

Edited by termoshtt

Merge request reports

Loading