diff options
author | Max Hirschhorn <max.hirschhorn@mongodb.com> | 2018-09-11 17:17:38 -0400 |
---|---|---|
committer | Max Hirschhorn <max.hirschhorn@mongodb.com> | 2018-09-11 17:17:38 -0400 |
commit | a3c62ebeebb69982fda16697294827bb68a093bc (patch) | |
tree | df40e111fa2386b01759d014d43170c2c17c55b1 /src | |
parent | 80e8f97ac01abb879c462712d9765716db5c675a (diff) | |
download | mongo-a3c62ebeebb69982fda16697294827bb68a093bc.tar.gz |
SERVER-37013 Generate mongoebench config files using --readCmd=true.
The benchrun.py script defaults to --readCmd=false which would otherwise
prevent the usage of views. We still use --readCmd=false for the
non-views tests to match what etc/perf.yml does.
Diffstat (limited to 'src')
-rwxr-xr-x | src/third_party/scripts/mongo-perf_get_sources.sh | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/src/third_party/scripts/mongo-perf_get_sources.sh b/src/third_party/scripts/mongo-perf_get_sources.sh index 80f9d1bc07b..113fef3532f 100755 --- a/src/third_party/scripts/mongo-perf_get_sources.sh +++ b/src/third_party/scripts/mongo-perf_get_sources.sh @@ -45,12 +45,30 @@ NUM_CPUS=$(python -c 'import multiprocessing; print(multiprocessing.cpu_count()) # # We don't generate JSON config files for tests that are tagged with "capped" or "where" because # they aren't supported by embedded. -find testcases -type f -print0 | xargs -0 -I% -n1 -P$NUM_CPUS \ - python2 benchrun.py --testfiles % \ - --threads 1 \ - --excludeFilter capped \ - --excludeFilter where \ - --generateMongoeBenchConfigFiles mongoebench/ +# +# We generate JSON config files for tests that are tagged with "aggregation_identityview" or +# "query_identityview" while using --readCmd=true because the find command is necessary to read from +# a view. We use --readCmd=false for all other tests to match what etc/perf.yml does. +find testcases -type f -print0 | xargs -0 -I% -n1 -P$NUM_CPUS \ + python2 benchrun.py --testfiles % \ + --threads 1 \ + --excludeFilter capped \ + --excludeFilter where \ + --generateMongoeBenchConfigFiles mongoebench/ \ + --readCmd false \ + --writeCmd true \ + --excludeFilter aggregation_identityview \ + --excludeFilter query_identityview + +find testcases -type f -print0 | xargs -0 -I% -n1 -P$NUM_CPUS \ + python2 benchrun.py --testfiles % \ + --threads 1 \ + --excludeFilter capped \ + --excludeFilter where \ + --generateMongoeBenchConfigFiles mongoebench/ \ + --readCmd true \ + --writeCmd true \ + --includeFilter aggregation_identityview query_identityview popd |