66 lines
1.9 KiB
Markdown
66 lines
1.9 KiB
Markdown
# Optimization: Baseline
|
|
|
|
- **Author**: TBD
|
|
- **Predecessor**: N/A (initial reference)
|
|
- **File(s)**: variants/variant_baseline.cpp
|
|
- **Status**: reference
|
|
|
|
## What this changes
|
|
|
|
This is the unoptimized reference implementation of the social force model.
|
|
Every other optimization is measured relative to it. See the source file for
|
|
the full implementation; key functions are `w()`, `acceleration_term_dt()`,
|
|
`pedestrian_repulsion_dt()`, `obstacle_repulsion_dt()`, and `run_simulation()`.
|
|
|
|
## Code (relevant snippet)
|
|
|
|
TBD
|
|
|
|
## Benchmark
|
|
|
|
Conditions: TBD.
|
|
|
|
### x86
|
|
|
|
**Machine**:
|
|
|
|
```
|
|
TBD
|
|
```
|
|
|
|
**Frequency**: TBD
|
|
|
|
| N | W(n) [Flops] | T(n) [Cycles] | Performance [Flops/Cycle] | Diff vs Predecessor |
|
|
| ---- | ------------ | ------------- | ------------------------- | ------------------- |
|
|
| 50 | | | | - |
|
|
| 100 | | | | - |
|
|
| 200 | | | | - |
|
|
| 500 | | | | - |
|
|
| 1000 | | | | - |
|
|
|
|
### ARM (Apple)
|
|
|
|
**Machine**:
|
|
|
|
```
|
|
TBD
|
|
```
|
|
|
|
**Frequency**: TBD
|
|
|
|
| N | W(n) [Flops] | T(n) [Cycles] | Performance [Flops/Cycle] | Diff vs Predecessor |
|
|
| ---- | ------------ | ------------- | ------------------------- | ------------------- |
|
|
| 50 | | | | - |
|
|
| 100 | | | | - |
|
|
| 200 | | | | - |
|
|
| 500 | | | | - |
|
|
| 1000 | | | | - |
|
|
|
|
## Analysis
|
|
|
|
TBD
|
|
|
|
## Takeaway
|
|
|
|
TBD
|