From d3057d7a1eba0c050f5d6d9674d56d1794b1f066 Mon Sep 17 00:00:00 2001 From: Tvrtko Ursulin Date: Fri, 25 Apr 2014 15:42:20 +0100 Subject: tests/gem_userptr_benchmark: Benchmarking userptr surfaces and impact This adds a small benchmark for the new userptr functionality. Apart from basic surface creation and destruction, also tested is the impact of having userptr surfaces in the process address space. Reason for that is the impact of MMU notifiers on common address space operations like munmap() which is per process. v2: * Moved to benchmarks. * Added pointer read/write tests. * Changed output to say iterations per second instead of operations per second. * Multiply result by batch size for multi-create* tests for a more comparable number with create-destroy test. v3: * Use ALIGN macro. * Catchup with big lib/ reorganization. * Removed unused code and one global variable. * Fixed up some warnings. v4: * Fixed feature test, does not matter here but makes it consistent with gem_userptr_blits and clearer. Signed-off-by: Tvrtko Ursulin Cc: Chris Wilson Cc: Brad Volkin Reviewed-by: Brad Volkin Signed-off-by: Daniel Vetter --- benchmarks/Makefile.sources | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'benchmarks/Makefile.sources') diff --git a/benchmarks/Makefile.sources b/benchmarks/Makefile.sources index f9da579b..60bdae2d 100644 --- a/benchmarks/Makefile.sources +++ b/benchmarks/Makefile.sources @@ -2,4 +2,5 @@ bin_PROGRAMS = \ intel_upload_blit_large \ intel_upload_blit_large_gtt \ intel_upload_blit_large_map \ - intel_upload_blit_small + intel_upload_blit_small \ + gem_userptr_benchmark -- cgit v1.2.3