summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-05-08 14:35:08 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2016-05-09 08:29:18 +0100
commit0a67950a73d4c9180d7c55b66d4cfc0f1a96e42e (patch)
treed43df5debb1c523958dd13ff307db45deff78415 /benchmarks
parent8ceab4f2166e6510df1614c360cb1828cbb4c160 (diff)
benchmarks/gem_create: Report combined concurrent allocation rate
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/ezbench.d/gem_create.test3
-rw-r--r--benchmarks/gem_create.c2
2 files changed, 2 insertions, 3 deletions
diff --git a/benchmarks/ezbench.d/gem_create.test b/benchmarks/ezbench.d/gem_create.test
index aa107a8a..d882fe5a 100644
--- a/benchmarks/ezbench.d/gem_create.test
+++ b/benchmarks/ezbench.d/gem_create.test
@@ -3,8 +3,7 @@ test_exec_time=2
[ -e $IGT_BENCHMARKS/gem_create ] || return 1
sudo -n true || return 1
-test_name="gem:create:4k gem:create:4M"
-test_name+="gem:create:f4k gem:create:f4M"
+test_name="gem:create:4k gem:create:4M gem:create:f4k gem:create:f4M"
gem:create:4k_run() { sudo $IGT_BENCHMARKS/gem_create -s 4096 -r $1; }
gem:create:4M_run() { sudo $IGT_BENCHMARKS/gem_create -s 4194304 -r $1; }
diff --git a/benchmarks/gem_create.c b/benchmarks/gem_create.c
index 519ab92c..1e7efacf 100644
--- a/benchmarks/gem_create.c
+++ b/benchmarks/gem_create.c
@@ -177,7 +177,7 @@ int main(int argc, char **argv)
for (int child = 0; child < ncpus; child++)
shared[ncpus] += shared[child];
- printf("%7.3f\n", shared[ncpus] / ncpus);
+ printf("%7.3f\n", shared[ncpus]);
}
}