- start = simgrid::s4u::Engine::getClock();
- XBT_INFO("Run a task of %.0E flops", 100E6);
- simgrid::s4u::this_actor::execute(100E6);
-
- XBT_INFO("Done working on my task; this took %.2fs; current peak speed: %.0E flop/s; number of flops computed so "
- "far: %.0E",
- simgrid::s4u::Engine::getClock() - start, host->getSpeed(), sg_host_get_computed_flops(host));
+ start = simgrid::s4u::Engine::get_clock();
+ XBT_INFO("Run a task of %.0E flops at current speed of %.0E flop/s", 200E6, host->getSpeed());
+ simgrid::s4u::this_actor::execute(200E6);
+
+ XBT_INFO("Done working on my task; this took %.2fs; current peak speed: %.0E flop/s (when I started the computation, "
+ "the speed was set to %.0E flop/s); number of flops computed so "
+ "far: %.2E, average load as reported by the HostLoad plugin: %.5f (should be %.5f)",
+ simgrid::s4u::Engine::get_clock() - start, host->getSpeed(), speed, sg_host_get_computed_flops(host),
+ sg_host_get_avg_load(host),
+ static_cast<double>(200E6) /
+ (10.5 * speed * host->get_core_count() +
+ (simgrid::s4u::Engine::get_clock() - start - 0.5) * host->getSpeed() * host->get_core_count()));