Skip to content

TSBS DevOps — Single Host - 12 Hours

TSBS DevOps benchmark · all TSBS DevOps queries

CPU usage for a single host over 12 hours

Representative SQL

Rendered in the benchmark’s native SQL with default parameters (no dialect translation available).

SELECT
time,
usage_user,
usage_system,
usage_idle
FROM cpu
WHERE
hostname = 'host_63'
AND time >= '2024-01-02 06:00:00'
AND time < '2024-01-02 18:00:00'
ORDER BY
time

Representative DataFrame

No DataFrame implementation is registered for this query.

Get the exact query for your run

The blocks above are representative. To get the precise statement a specific platform runs at a specific scale, substitute your own values:

from benchbox import TSBSDevOps
bench = TSBSDevOps(scale_factor=1.0) # your scale factor
queries = bench.get_queries(dialect="datafusion") # your platform's dialect; drop dialect= for native SQL
print(queries['single-host-12-hr'])

Source

Query text: benchbox/core/tsbs_devops/queries.py