-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
36 lines (31 loc) · 1008 Bytes
/
Copy pathmain.cpp
File metadata and controls
36 lines (31 loc) · 1008 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
* File: main.cpp
* Author: Ashutosh Panigrahy
* Created: 2026-05-19
* Description:
* NOTE: keep it working & simple
*/
#include "run_manager.hpp"
#include "growth/growth.hpp"
#include "cache-locality/cache_locality.hpp"
// how to stop early in case of noob/malicious user? sleep 10 minutes?
// if user can provide a limit : optionally (within a global limit)
// if timer expires before, exception thrown for the experiment & move to next
// defence mechanism against it:
// can stop_token be useful for this?
// conditional variable, mutex,..
// will think later: TODO
int main(int argc, char *argv[]) {
try {
Run_Manager manager(argc, argv);
manager.start({
Run_Manager::Runnable{"growth/growth.csv", run_vector_growth_experiment},
Run_Manager::Runnable{"cache/locality.csv", run_cache_locality_experiment},
});
}
catch (std::exception const& e) {
std::cerr << "Error: " << e.what() << '\n';
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}