Skip to content

Commit 2376941

Browse files
authored
CDRIVER-4105 add ubuntu1804-large with MongoDB 5.0 to benchmarks (#913)
1 parent 3763650 commit 2376941

File tree

1 file changed

+36
-5
lines changed

1 file changed

+36
-5
lines changed

.evergreen/benchmark.yml

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ variables:
2222
mongo_url: "https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.2.10.tgz"
2323
mongo_v44: &mongo_v44
2424
mongo_url: "http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-rhel62-v4.4-latest.tgz"
25+
mongo_v50_ubuntu: &mongo_v50_ubuntu
26+
mongo_url: "http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu1804-5.0.2.tgz"
27+
2528

2629
## Common sets of CFLAGS
2730
cflags:
@@ -83,7 +86,7 @@ functions:
8386
set -o verbose
8487
set -o errexit
8588
rm -rf mongo-c-driver*
86-
curl --retry 5 http://s3.amazonaws.com/mciuploads/mongo-c-driver/c-driver-benchmark-compile/${revision}/artifacts/${file}.tar.gz -o c-perf-binaries.tar.gz -sS --max-time 120
89+
curl --retry 5 http://s3.amazonaws.com/mciuploads/mongo-c-driver/${compile_variant}/${revision}/artifacts/${file}.tar.gz -o c-perf-binaries.tar.gz -sS --max-time 120
8790
${decompress} c-perf-binaries.tar.gz
8891
rm c-perf-binaries.tar.gz
8992
@@ -141,7 +144,9 @@ functions:
141144
142145
echo "Running Benchmark tests "
143146
start_time=$(date +%s)
144-
LD_LIBRARY_PATH=`pwd`/mongoc/lib64:$LD_LIBRARY_PATH ./mongo-c-driver-performance/mongo-c-performance ./data
147+
# centos6-perf installs into lib64
148+
# ubuntu1804-large installs into lib
149+
LD_LIBRARY_PATH=`pwd`/mongoc/lib64:`pwd`/mongoc/lib:$LD_LIBRARY_PATH ./mongo-c-driver-performance/mongo-c-performance ./data
145150
set +o errexit
146151
result=$?
147152
@@ -231,7 +236,7 @@ tasks:
231236
aws_key: ${aws_key}
232237
aws_secret: ${aws_secret}
233238
local_file: mongo-c-driver.tar.gz
234-
remote_file: mongo-c-driver/${build_variant}/${revision}/artifacts/c-perf-binaries.tar.gz
239+
remote_file: mongo-c-driver/${build_variant}/${revision}/artifacts/${file}.tar.gz
235240
bucket: mciuploads
236241
permissions: public-read
237242
content_type: ${content_type|application/x-gzip}
@@ -242,8 +247,17 @@ tasks:
242247
name: compile
243248
commands:
244249
- func: "fetch artifacts"
245-
vars:
246-
file: c-perf-binaries
250+
- func: "fetch mongodb"
251+
- func: "fetch driver test data"
252+
- func: "run benchmark tests"
253+
- func: "attach benchmark test results"
254+
- func: "send dashboard data"
255+
256+
- name: BenchMarkTestsUbuntu1804
257+
depends_on:
258+
- compile
259+
commands:
260+
- func: "fetch artifacts"
247261
- func: "fetch mongodb"
248262
- func: "fetch driver test data"
249263
- func: "run benchmark tests"
@@ -261,6 +275,7 @@ buildvariants:
261275
display_name: "C Driver Benchmark Compile"
262276
expansions:
263277
<<: [ *cflags_64, *mongo_v32, *benchmark_common ]
278+
file: c-binaries-centos6
264279
run_on:
265280
- rhel62-small
266281
tasks: *benchmark_compile
@@ -269,6 +284,8 @@ buildvariants:
269284
display_name: "C Driver Benchmark Mongo 3.2"
270285
expansions:
271286
<<: [ *cflags_64, *mongo_v32, *benchmark_common ]
287+
file: c-binaries-centos6
288+
compile_variant: c-driver-benchmark-compile
272289
run_on:
273290
- centos6-perf
274291
tasks: *benchmark_tests
@@ -277,6 +294,20 @@ buildvariants:
277294
display_name: "C Driver Benchmark Mongo 4.4"
278295
expansions:
279296
<<: [ *cflags_64, *mongo_v44, *benchmark_common ]
297+
file: c-binaries-centos6
298+
compile_variant: c-driver-benchmark-compile
280299
run_on:
281300
- centos6-perf
282301
tasks: *benchmark_tests
302+
303+
- name: c-driver-benchmark-mongo50-ubuntu1804
304+
display_name: "C Driver Benchmark Mongo 5.0 (Ubuntu 18.04)"
305+
expansions:
306+
<<: [ *cflags_64, *mongo_v50_ubuntu, *benchmark_common ]
307+
file: c-binaries-ubuntu1804
308+
compile_variant: c-driver-benchmark-mongo50-ubuntu1804
309+
run_on:
310+
- ubuntu1804-large
311+
tasks:
312+
- name: "compile"
313+
- name: "BenchMarkTestsUbuntu1804"

0 commit comments

Comments
 (0)