Portfolio: Make SensorGrid Faster, and Prove It¶
The brief¶
Your role
You are a performance engineer on the SensorGrid team. Choose one workload from the options below, build a correct sequential baseline, make it faster with the techniques of this course, and prove the improvement with measurements and models.
Workflow¶
flowchart TB
subgraph S1["Build"]
direction LR
A["1 · Choose a workload"] --> B["2 · Sequential<br/>C/C++ baseline"] --> C["3 · Profile:<br/>where is the time?"]
end
subgraph S2["Improve"]
direction LR
D["4 · Parallelise<br/>OpenMP / CUDA / cluster"] --> E["5 · Verify<br/>correctness, no races"] --> F["6 · Measure<br/>T, S, E for several P"]
end
subgraph S3["Explain"]
direction LR
G["7 · Model<br/>Amdahl, AMAT, roofline, α + βn"] --> H["8 · Document"] --> I["9 · Present"]
end
S1 --> S2 --> S3
Workload options¶
| Option | Techniques | Units |
|---|---|---|
| A · Daily aggregation on a node: mean, min, max, histogram per sensor | OpenMP for, reduction, data layout, cache effects |
4, 9, 11 |
| B · Nightly pipeline as a task graph | OpenMP tasks and depend, work and span |
10 |
| C · GPU preprocessing: standardisation and pairwise distances | CUDA (or CuPy / Numba), coalescing, shared memory | 12 |
| D · Streaming pipeline: Kafka → Python → Cassandra | partitions, consumer groups, consistency levels | 6, 8 |
| E · Batch analytics: yearly report with MapReduce or Spark | HDFS blocks, combiner, locality | 7 |
Required evidence¶
- Git repository with a clear commit history and a
README.md - Sequential baseline and parallel version, both correct on the same test data
- A results table and a speedup chart for at least four values of \(P\)
- A performance model that explains the measured curve
- A 15 minute presentation with live demo and Q&A
The results table¶
| \(P\) | \(T(P)\) [s] | \(S(P) = T(1)/T(P)\) | \(E(P) = S(P)/P\) | Amdahl prediction |
|---|---|---|---|---|
| 1 | 1.00 | 1.00 | 1.00 | |
| 2 | ||||
| 4 | ||||
| 8 | ||||
| 16 |
Estimate the parallel fraction \(f\) from your measurements by inverting Amdahl's law:
\[
f = \frac{1 - 1/S(P)}{1 - 1/P}
\]
For example, \(S(8) = 5\) gives \(f = (1 - 0.2)/(1 - 0.125) \approx 0.91\).
Assessment rubric¶
| Criterion | Weight | Excellent (A) | Satisfactory (C) | Insufficient (F) |
|---|---|---|---|---|
| Correctness | 15 % | identical results to the baseline; race free (sanitiser clean) | minor numerical differences explained | wrong results or races |
| Parallel implementation | 25 % | appropriate technique, clean code, justified design choices | works, limited justification | little or no parallelism |
| Performance evaluation | 20 % | systematic measurements, repeated runs, charts, \(S\) and \(E\) | some measurements | no measurements |
| Performance model | 15 % | model explains the curve (Amdahl, AMAT, roofline, α + βn); bottleneck identified | model stated but loosely connected | no model |
| Documentation | 15 % | clear README, reproducible build and run, full attribution | adequate | poor or missing attribution |
| Presentation and Q&A | 10 % | clear story, confident answers on theory and own code | understandable, some gaps | cannot explain own work |
Academic integrity
Build on others' work with attribution. Using others' work, including AI tools and existing GitHub repositories, without attribution is plagiarism. List every source in an Attribution section of your README.
Milestones¶
gantt
title Suggested portfolio timeline
dateFormat YYYY-MM-DD
axisFormat %d %b
section Build
Choose workload and baseline :a1, 2026-05-13, 14d
Profile :a2, after a1, 7d
section Improve
Parallel version :b1, after a2, 21d
Verification and measurements :b2, after b1, 14d
section Explain
Model and documentation :c1, after b2, 10d
Presentation :milestone, after c1, 0d