I used this code exactly and yet my gpu (GTX 2080 with 50th percentile performance) was slower than my cpu (i7-8700) with the results being: CPU 0.0009041459998115897, GPU 0.0022378258872777224. Any reason why this might be? If i increase the data size a lot the GPU begins to clearly outperform but I thought my GPU was pretty good so why wouldn’t I see a performance difference at the same data quantities that your machine does?