aboutsummaryrefslogtreecommitdiff
path: root/MicroBenchmarks
diff options
context:
space:
mode:
authorEizan Miyamoto <eizan.miyamoto@gmail.com>2017-11-03 10:01:12 +0000
committerEizan Miyamoto <eizan.miyamoto@gmail.com>2017-11-03 10:01:12 +0000
commit47eaa6d218cafdb2b32c6f71ab3f2e3fc442528b (patch)
tree644faf66066e8fb08769112b3e762d13ee5ec037 /MicroBenchmarks
parent6b53ea9359a7d2c1a71c4527125ac7e6e56712a5 (diff)
add microbenchmark litsupport plugin
use microbenchmark litsupport plugin for XRay benchmarks The litsuport module was originally written by @MatzeB provided in https://reviews.llvm.org/D37421 with some minor edits to the test output name string (note: s/exec_time/microbenchmark_time_ns/) Approved in https://reviews.llvm.org/D38496 git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@317310 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'MicroBenchmarks')
-rw-r--r--MicroBenchmarks/XRay/lit.local.cfg7
1 files changed, 7 insertions, 0 deletions
diff --git a/MicroBenchmarks/XRay/lit.local.cfg b/MicroBenchmarks/XRay/lit.local.cfg
index 209fba69..7b91cf89 100644
--- a/MicroBenchmarks/XRay/lit.local.cfg
+++ b/MicroBenchmarks/XRay/lit.local.cfg
@@ -1 +1,8 @@
config.environment['XRAY_OPTIONS'] = 'patch_premain=false xray_naive_log=false'
+test_modules = config.test_modules
+if 'run' in test_modules:
+ # Insert microbenchmark module behind 'run'
+ test_modules.insert(test_modules.index('run')+1, 'microbenchmark')
+ # Timeit results are not useful for microbenchmarks
+ if 'timeit' in test_modules:
+ test_modules.remove('timeit')