4 ms·
Standard glibc memcpy() vs. RISC-V Vector extension version on the Allwinner D1
- brucehoult 5y agoThat's a pretty nice 3x speedup at 128 byte copy size. Remarkable that the execution time is absolutely identical for anything from 0 to 128 bytes. And the code is 1/24th the size.
- brucehoult 5y agoI've reduced the time for lengths from 0 to 64 bytes from 46.8 ns to 30.9 ns without adversely affecting longer lengths. I also knocked 2 bytes off the code size, from 26 to 24 bytes.
- brucehoult 5y agoI've now done the same thing for strcpy(). It's even more dramatic: http://hoult.org/d1_strcpy.txt http://hoult.org/d1_strcpy.txt