Skip to content

TSBS DevOps — CPU Max All Hosts - 8 Hours

TSBS DevOps benchmark · all TSBS DevOps queries

Maximum CPU usage across all hosts over 8 hours

Representative SQL

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

SELECT
hostname,
MAX(usage_user) AS max_user,
MAX(usage_system) AS max_system,
MAX(usage_iowait) AS max_iowait
FROM cpu
WHERE
time >= '2024-01-02 08:00:00' AND time < '2024-01-02 16:00:00'
GROUP BY
hostname
ORDER BY
max_user DESC

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['cpu-max-all-8-hr'])

Source

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