-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
utility: add benchmark library, but don't use it yet. #2350
Changes from 6 commits
2804d6c
8eb9e25
29bc713
8fe318b
29b9065
6097f04
ca68fd5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
|
||
export COMMIT="e1c3a83b8197cf02e794f61228461c27d4e78cfb" # benchmark @ Jan 11, 2018 | ||
|
||
git clone https://github.com/google/benchmark.git | ||
(cd benchmark; git reset --hard "$COMMIT") | ||
mkdir build | ||
|
||
cd build | ||
cmake -G "Unix Makefiles" ../benchmark \ | ||
-DCMAKE_BUILD_TYPE=RELEASE \ | ||
-DBENCHMARK_ENABLE_GTEST_TESTS=OFF | ||
make | ||
cp src/libbenchmark.a "$THIRDPARTY_BUILD"/lib | ||
cd ../benchmark | ||
|
||
pwd | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not needed. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
include_dir="$THIRDPARTY_BUILD/include/testing/base/public" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Prefer There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done; FWIW I thought lower-case variables were common in bash, and upper-case variables when they are exported. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. They are, and it's in the Google style guide, but we haven't had that convention in Envoy, so we tend to opt to be consistent with the existing code base as the lesser evil. |
||
mkdir -p "$include_dir" | ||
cp include/benchmark/benchmark.h "$include_dir" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove
-x
(once done debug) and add-e
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done