[PATCH v2 00/14] riscv: optimize string functions and add kunit tests
Joel Stanley
joel at jms.id.au
Wed Jan 14 20:43:40 PST 2026
On Tue, 13 Jan 2026 at 18:58, Feng Jiang <jiangfeng at kylinos.cn> wrote:
>
> This series introduces optimized assembly implementations for strnlen,
> strchr, and strrchr on the RISC-V architecture. To support a rigorous
> verification process, the series also significantly expands the
> string_kunit test suite with both functional correctness tests and
> performance benchmarks.
I ran the kunit tests on Ascalon, a RVA23 CPU, in emulation. The arch
optimised version showed significant improvements over the plain
version.
I didn't have time to investigate if the numbers made sense. As Andy
noted, the 'long' benchmark had a much higher ratio improvement than
the short and medium.
Tested-by: Joel Stanley <joel at jms.id.au>
Cheers,
Joel
More information about the linux-riscv
mailing list