You must decide between pandas, cuDF and Dask-cuDF for a recurring job. What makes the benchmark fair?
- Exam domain
- GPU and Cloud Computing16% of the exam
- Difficulty
- Medium
- In this mock
- 8 questions on this domainPractise this domain
Why the exam asks this
GPU and Cloud Computing (16% of the exam)
Objective in the exam guide: Comparing frameworks' performance by designing and implementing a benchmark
Designing benchmarks is named.
Why D is the answer
Same data and steps, warm-up runs, several repeats
A fair benchmark uses identical data and steps, excludes or reports one-time startup separately, and repeats runs to measure variance.
Remember: Benchmark with identical inputs, warm-up and repeats.
How it works
Framework benchmarks need identical workloads, warm-ups and repeated measurements.
In detail
- Same data and steps.
- Warm up and repeat.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Run each framework once on a different dataset and compare the single run times directlyWrongMost tempting
Different data makes results incomparable.
Why it tempts: One run feels like enough data.
B. Include first-run startup onlyWrong
Startup alone misrepresents steady state.
C. Compare marketing claimsWrong
Claims are not measurements.
D. Same data and steps, warm-up runs, several repeatsRight
Benchmark with identical inputs, warm-up and repeats.
Use case
An illustrative scenario, not a real incident.
Illustrative: after warm-up, cuDF is 25 times faster than pandas; Dask-cuDF only wins on the larger dataset.
See it in different ways
flowchart LR S0["Fix data and steps"] --> S1["Warm up"] --> S2["Repeat runs"] --> S3["Record median and spread"] --> S4["Compare cost"]
How to read this chart
- Read it in order: Fix data and steps, then Warm up, then Repeat runs, then Record median and spread, then Compare cost.
flowchart TD
Q{"Recurring job?"}
Q -->|"Yes"| A0["Steady-state time"]
Q -->|"One-off"| A1["Include startup"]How to read this chart
- At "Recurring job?": if "Yes", go to "Steady-state time"; if "One-off", go to "Include startup".