in Extremem/src/main/java/com/amazon/corretto/benchmark/extremem/ServerLog.java [153:406]
void report(ExtrememThread t, String label, boolean reportCSV) {
int min, max;
float average;
Report.output("");
Report.output("Server ", label, " summary");
Report.output("");
Report.output("Sales transaction processing:");
String s = Integer.toString(xact_batches);
int l = s.length();
Util.ephemeralString(t, l);
if (reportCSV)
Report.output("batches,", s);
else
Report.output(" batches: ", s);
Util.abandonEphemeralString(t, l);
s = Integer.toString(total_xact);
l = s.length();
Util.ephemeralString(t, l);
if (reportCSV)
Report.output("total,", s);
else
Report.output(" total: ", s);
Util.abandonEphemeralString(t, l);
if (total_xact > 0) {
min = min_xact_per_batch;
max = max_xact_per_batch;
average = ((float) total_xact) / xact_batches;
} else {
min = 0;
max = 0;
average = 0.0f;
}
s = Integer.toString(min);
l = s.length();
Util.ephemeralString(t, l);
if (reportCSV)
Report.output("min per batch,", s);
else
Report.output(" min per batch: ", s);
Util.abandonEphemeralString(t, l);
s = Integer.toString(max);
l = s.length();
Util.ephemeralString(t, l);
if (reportCSV)
Report.output("max per batch,", s);
else
Report.output(" max per batch: ", s);
Util.abandonEphemeralString(t, l);
s = Float.toString(average);
l = s.length();
Util.ephemeralString(t, l);
if (reportCSV)
Report.output("average per batch,", s);
else
Report.output("average per batch: ", s);
Util.abandonEphemeralString(t, l);
Report.output();
sales_xact.report(t, reportCSV);
Report.output();
Report.output("Browsing history processing:");
s = Integer.toString(history_batches);
l = s.length();
Util.ephemeralString(t, l);
if (reportCSV)
Report.output("batches,", s);
else
Report.output(" batches: ", s);
Util.abandonEphemeralString(t, l);
s = Integer.toString(total_histories);
l = s.length();
Util.ephemeralString(t, l);
if (reportCSV)
Report.output("total,", s);
else
Report.output(" total: ", s);
Util.abandonEphemeralString(t, l);
if (total_histories > 0) {
min = min_history_per_batch;
max = max_history_per_batch;
average = ((float) total_histories) / history_batches;
} else {
min = 0;
max = 0;
average = 0.0f;
}
s = Integer.toString(min);
l = s.length();
Util.ephemeralString(t, l);
if (reportCSV)
Report.output("min per batch,", s);
else
Report.output(" min per batch: ", s);
Util.abandonEphemeralString(t, l);
s = Integer.toString(max);
l = s.length();
Util.ephemeralString(t, l);
if (reportCSV)
Report.output("max per batch,", s);
else
Report.output(" max per batch: ", s);
Util.abandonEphemeralString(t, l);
s = Float.toString(average);
l = s.length();
Util.ephemeralString(t, l);
if (reportCSV)
Report.output("average per batch,", s);
else
Report.output("average per batch: ", s);
Util.abandonEphemeralString(t, l);
Report.output();
expire_history.report(t, reportCSV);
Report.output();
Report.output("Customer replacement processing:");
s = Integer.toString(customer_batches);
l = s.length();
Util.ephemeralString(t, l);
if (reportCSV)
Report.output("batches,", s);
else
Report.output(" batches: ", s);
Util.abandonEphemeralString(t, l);
s = Integer.toString(total_customers);
l = s.length();
Util.ephemeralString(t, l);
if (reportCSV)
Report.output("total,", s);
else
Report.output(" total: ", s);
Util.abandonEphemeralString(t, l);
if (total_customers > 0) {
min = min_customer_per_batch;
max = max_customer_per_batch;
average = ((float) total_customers) / customer_batches;
} else {
min = 0;
max = 0;
average = 0.0f;
}
s = Integer.toString(min);
l = s.length();
Util.ephemeralString(t, l);
if (reportCSV)
Report.output("min per batch,", s);
else
Report.output(" min per batch: ", s);
Util.abandonEphemeralString(t, l);
s = Integer.toString(max);
l = s.length();
Util.ephemeralString(t, l);
if (reportCSV)
Report.output("max per batch,", s);
else
Report.output(" max per batch: ", s);
Util.abandonEphemeralString(t, l);
s = Float.toString(average);
l = s.length();
Util.ephemeralString(t, l);
if (reportCSV)
Report.output("average per batch,", s);
else
Report.output("average per batch: ", s);
Util.abandonEphemeralString(t, l);
Report.output();
replace_customers.report(t, reportCSV);
Report.output();
Report.output("Product replacement processing:");
s = Integer.toString(product_batches);
l = s.length();
Util.ephemeralString(t, l);
if (reportCSV)
Report.output("batches,", s);
else
Report.output(" batches: ", s);
Util.abandonEphemeralString(t, l);
s = Integer.toString(total_products);
l = s.length();
Util.ephemeralString(t, l);
if (reportCSV)
Report.output("total,", s);
else
Report.output(" total: ", s);
Util.abandonEphemeralString(t, l);
if (total_products > 0) {
min = min_product_per_batch;
max = max_product_per_batch;
average = ((float) total_products) / product_batches;
} else {
min = 0;
max = 0;
average = 0.0f;
}
s = Integer.toString(min);
l = s.length();
Util.ephemeralString(t, l);
if (reportCSV)
Report.output("min per batch,", s);
else
Report.output(" min per batch: ", s);
Util.abandonEphemeralString(t, l);
s = Integer.toString(max);
l = s.length();
Util.ephemeralString(t, l);
if (reportCSV)
Report.output("max per batch,", s);
else
Report.output(" max per batch: ", s);
Util.abandonEphemeralString(t, l);
s = Float.toString(average);
l = s.length();
Util.ephemeralString(t, l);
if (reportCSV)
Report.output("average per batch,", s);
else
Report.output("average per batch: ", s);
Util.abandonEphemeralString(t, l);
Report.output();
replace_products.report(t, reportCSV);
Report.output();
Report.output("Do nothing processing:");
do_nothing.report(t, reportCSV);
Report.output();
}