add perf tests

This commit is contained in:
taiyang-li 2024-03-20 18:59:22 +08:00
parent a446649648
commit 49422debaf
2 changed files with 11 additions and 1 deletions

View File

@ -222,7 +222,8 @@ bool isAllASCII(const UInt8 * data, size_t size)
DECLARE_SSE42_SPECIFIC_CODE(
/// Copy from https://github.com/lemire/fastvalidate-utf-8/blob/master/include/simdasciicheck.h
bool isAllASCII(const UInt8 * data, size_t size) {
bool isAllASCII(const UInt8 * data, size_t size)
{
size_t i = 0;
__m128i masks = _mm_setzero_si128();
if (size >= 16)

View File

@ -0,0 +1,9 @@
<test>
<query>select substringUTF8(materialize('hello world'), 2, 5) from numbers(10000000)</query>
<query>select substringIndexUTF8(materialize('www.clickhouse.com'), '.', 2) from numbers(10000000)</query>
<query>select reverseUTF8(materialize('hello world')) from numbers(10000000)</query>
<query>select lowerUTF8(materialize('hello world')) from numbers(10000000)</query>
<query>select upperUTF8(materialize('hello world')) from numbers(10000000)</query>
<query>select leftPadUTF8(materialize('hello '), 10, ',') from numbers(10000000)</query>
<query>select rightPadUTF8(materialize('hello '), 10, ',') from numbers(10000000)</query>
</test>