File src/etabench.cpp changed (mode: 100644) (index 6844dc9..7b9a769) |
... |
... |
main(int argc, char *argv[]) |
91 |
91 |
int total = args.getTotal(); |
int total = args.getTotal(); |
92 |
92 |
|
|
93 |
93 |
auto algs = make_unique_vector<EtaAlg>( |
auto algs = make_unique_vector<EtaAlg>( |
|
94 |
|
std::make_unique<AccelerationAlg>(), |
94 |
95 |
std::make_unique<AverageAlg>(), |
std::make_unique<AverageAlg>(), |
|
96 |
|
std::make_unique<FirefoxAlg>(), |
|
97 |
|
std::make_unique<GravityAlg>(), |
95 |
98 |
std::make_unique<ImmediateAlg>(), |
std::make_unique<ImmediateAlg>(), |
96 |
99 |
std::make_unique<LookBackAlg>(20), |
std::make_unique<LookBackAlg>(20), |
97 |
|
std::make_unique<AccelerationAlg>(), |
|
98 |
100 |
std::make_unique<SwitchAlg>(), |
std::make_unique<SwitchAlg>(), |
99 |
|
std::make_unique<GravityAlg>(), |
|
100 |
|
std::make_unique<FirefoxAlg>(), |
|
101 |
101 |
std::make_unique<WindowAlg>(20, 1.0f) |
std::make_unique<WindowAlg>(20, 1.0f) |
102 |
102 |
); |
); |
103 |
103 |
|
|
104 |
104 |
auto disabledAlgs = make_unique_vector<EtaAlg>( |
auto disabledAlgs = make_unique_vector<EtaAlg>( |
|
105 |
|
std::make_unique<AveChangeLimitAlg>(), |
105 |
106 |
std::make_unique<CombinedAlg>(make_unique_vector<EtaAlg>( |
std::make_unique<CombinedAlg>(make_unique_vector<EtaAlg>( |
106 |
107 |
std::make_unique<AverageAlg>(), |
std::make_unique<AverageAlg>(), |
107 |
108 |
std::make_unique<ImmediateAlg>() |
std::make_unique<ImmediateAlg>() |
108 |
109 |
)), |
)), |
|
110 |
|
std::make_unique<ExponentialAlg>(1), |
109 |
111 |
std::make_unique<ImmChangeLimitAlg>(), |
std::make_unique<ImmChangeLimitAlg>(), |
110 |
|
std::make_unique<AveChangeLimitAlg>(), |
|
111 |
112 |
std::make_unique<SlownessAlg>(1), |
std::make_unique<SlownessAlg>(1), |
112 |
|
std::make_unique<ExponentialAlg>(1), |
|
113 |
113 |
std::make_unique<SmoothingAlg>(10) |
std::make_unique<SmoothingAlg>(10) |
114 |
114 |
); |
); |
115 |
115 |
|
|
116 |
116 |
auto profs = make_unique_vector<Profile>( |
auto profs = make_unique_vector<Profile>( |
117 |
117 |
std::make_unique<ConstantProfile>(10), |
std::make_unique<ConstantProfile>(10), |
118 |
|
std::make_unique<LinearProfile>(total, 15), |
|
119 |
|
std::make_unique<LinearProfile>(total, 30), |
|
120 |
|
std::make_unique<LinearProfile>(total, 45), |
|
121 |
|
std::make_unique<LinearProfile>(total, 60), |
|
122 |
|
std::make_unique<LinearProfile>(total, 75), |
|
123 |
118 |
std::make_unique<LinearProfile>(total, -15), |
std::make_unique<LinearProfile>(total, -15), |
124 |
119 |
std::make_unique<LinearProfile>(total, -30), |
std::make_unique<LinearProfile>(total, -30), |
125 |
120 |
std::make_unique<LinearProfile>(total, -45), |
std::make_unique<LinearProfile>(total, -45), |
126 |
121 |
std::make_unique<LinearProfile>(total, -60), |
std::make_unique<LinearProfile>(total, -60), |
127 |
122 |
std::make_unique<LinearProfile>(total, -75), |
std::make_unique<LinearProfile>(total, -75), |
|
123 |
|
std::make_unique<LinearProfile>(total, 15), |
|
124 |
|
std::make_unique<LinearProfile>(total, 30), |
|
125 |
|
std::make_unique<LinearProfile>(total, 45), |
|
126 |
|
std::make_unique<LinearProfile>(total, 60), |
|
127 |
|
std::make_unique<LinearProfile>(total, 75), |
|
128 |
|
std::make_unique<RandomProfile>(10, 20), |
|
129 |
|
std::make_unique<ReplayProfile>(), |
128 |
130 |
std::make_unique<SawProfile>(20), |
std::make_unique<SawProfile>(20), |
129 |
131 |
std::make_unique<SquareProfile>(20), |
std::make_unique<SquareProfile>(20), |
130 |
|
std::make_unique<StepProfile>(10), |
|
131 |
|
std::make_unique<RandomProfile>(10, 20), |
|
132 |
|
std::make_unique<ReplayProfile>() |
|
|
132 |
|
std::make_unique<StepProfile>(10) |
133 |
133 |
); |
); |
134 |
134 |
|
|
135 |
135 |
auto algsIota = std::views::iota(0, (int)algs.size()); |
auto algsIota = std::views::iota(0, (int)algs.size()); |