mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Add example
This commit is contained in:
parent
637f6a29a6
commit
1f6b05cd85
@ -655,6 +655,24 @@ for size in 4096 16384 50000 65536 100000 1000000 10000000 100000000; do
|
||||
done;
|
||||
done | tee result.tsv
|
||||
|
||||
clickhouse-local --structure '
|
||||
name String,
|
||||
size UInt64,
|
||||
iterations UInt64,
|
||||
threads UInt16,
|
||||
generator UInt8,
|
||||
memcpy UInt8,
|
||||
elapsed UInt64
|
||||
' --query "
|
||||
SELECT
|
||||
size, name,
|
||||
avg(1000 * elapsed / size / iterations) AS s,
|
||||
count() AS c
|
||||
FROM table
|
||||
GROUP BY size, name
|
||||
ORDER BY size ASC, s DESC
|
||||
" --output-format PrettyCompact < result.tsv
|
||||
|
||||
)" << std::endl;
|
||||
std::cout << desc << std::endl;
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user