RT:
我在 M1 机器上开启-O编译选项,结果如下:
engine = t1
time = 0.00908195972442627
index of 1024 = 1024
engine = t2
time = 0.018098950386047363
index of 1024 = 1024
engine = t3
time = 0.007354021072387695
index of 1024 = 1024
engine = t4
time = 0.004806995391845703
index of 1024 = 1024
RT: 我在 M1 机器上开启-O编译选项,结果如下: engine = t1 time = 0.00908195972442627 index of 1024 = 1024 engine = t2 time = 0.018098950386047363 index of 1024 = 1024 engine = t3 time = 0.007354021072387695 index of 1024 = 1024 engine = t4 time = 0.004806995391845703 index of 1024 = 1024
map 的方法变成是最慢的了!