Re: [PATCH v2 00/14] riscv: optimize string functions and add kunit tests

From: Joel Stanley

Date: Wed Jan 14 2026 - 23:43:52 EST


On Tue, 13 Jan 2026 at 18:58, Feng Jiang <jiangfeng@xxxxxxxxxx> 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@xxxxxxxxx>

Cheers,

Joel