The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/3861

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
Shows the duration of a task per container (for tasks involving several containers in a batch).
From 0e931cfc9b42450d1077fad832f40a028f7a1800 Mon Sep 17 00:00:00 2001
From: Simos Xenitellis <[email protected]>
Date: Wed, 27 Sep 2017 19:09:40 +0300
Subject: [PATCH] lxd-benchmark: Show times per container

Shows the duration per container of a batch container task.
---
 lxd-benchmark/benchmark/batch.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxd-benchmark/benchmark/batch.go b/lxd-benchmark/benchmark/batch.go
index 0e2399480..59e1315c7 100644
--- a/lxd-benchmark/benchmark/batch.go
+++ b/lxd-benchmark/benchmark/batch.go
@@ -41,7 +41,7 @@ func processBatch(count int, batchSize int, process 
func(index int, wg *sync.Wai
 
                if processed >= nextStat {
                        interval := time.Since(timeStart).Seconds()
-                       logf("Processed %d containers in %.3fs (%.3f/s)", 
processed, interval, float64(processed)/interval)
+                       logf("Processed %d containers in %.3fs (%.3fs per 
container)", processed, interval, interval/float64(processed))
                        nextStat = nextStat * 2
                }
 
_______________________________________________
lxc-devel mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to