[CDRIVER-1212] C Driver Performance Benchmarking Created: 27/Apr/16  Updated: 31/Oct/17  Resolved: 18/Jul/16

Status: Closed
Project: C Driver
Component/s: libbson, libmongoc, tests
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: A. Jesse Jiryu Davis
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DRIVERS-301 Driver Performance Benchmarking Closed
is depended on by DRIVERS-385 Port Driver Benchmark Tests to Evergreen Implementing
is depended on by CDRIVER-1565 JSON output from mongo-c-driver-perfo... Closed
Related
related to CDRIVER-1213 Pre-split bulk ops every 1000 documents Closed
related to CDRIVER-1491 Update mongo-c-driver-performance to ... Closed
is related to CDRIVER-1215 Eliminate copy of command reply document Closed

 Description   

Implement the standard driver performance benchmark suite.

Code is in its own repository:

https://github.com/mongodb/mongo-c-driver-performance



 Comments   
Comment by Hannes Magnusson [ 25/Aug/16 ]

https://github.com/mongodb-labs/driver-performance-test-data

Comment by Hannes Magnusson [ 25/Aug/16 ]

That dropbox link is 404.. Where is the current testdata?

Comment by A. Jesse Jiryu Davis [ 27/Apr/16 ]

On an Ubuntu 14.04 EC2 box:

sudo apt-get update && sudo apt-get install -y git automake autoconf libtool libsasl2-dev libssl-dev pkg-config emacs24-nox
 
# build cmake 3.5 -- but maybe apt-get install cmake works too
curl -LO https://cmake.org/files/v3.5/cmake-3.5.2.tar.gz
tar xzf cmake-3.5.2.tar.gz
cd cmake-3.5.2
./bootstrap
make -j8
sudo make install
cd ..
 
git clone https://github.com/mongodb/mongo-c-driver.git
cd mongo-c-driver
./autogen.sh && make -j8 && sudo make install
cd ..
 
curl -LO https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu1404-3.2.5.tgz
tar xzf mongodb-linux-x86_64-ubuntu1404-3.2.5.tgz
mkdir data
./mongodb-linux-x86_64-ubuntu1404-3.2.5/bin/mongod --nojournal --logpath mongod.log --fork --dbpath data
 
git clone https://github.com/mongodb/mongo-c-driver-performance.git
cd mongo-c-driver-performance
cmake -DCMAKE_BUILD_TYPE=Release .
make -j8
 
curl -LO https://www.dropbox.com/s/jpxpbq18r6mzg07/performance-testdata.tgz
tar xvf performance-testdata.tgz
rm *.tgz
find . -name '\._*' -exec rm {} ';'  # damn Mac litter
 
screen  # start a screen session, this will take a while
 
# ... in the screen session:
./mongo-c-performance performance-testdata

Generated at Wed Feb 07 21:11:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.