mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 02:52:13 +00:00
add perf tests
This commit is contained in:
parent
a446649648
commit
49422debaf
@ -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)
|
||||
|
9
tests/performance/ascii.xml
Normal file
9
tests/performance/ascii.xml
Normal 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>
|
Loading…
Reference in New Issue
Block a user