Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
benchmark
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
benchmark
Commits
140fc22a
Commit
140fc22a
authored
Aug 06, 2019
by
LesnyRumcajs
Committed by
Roman Lebedev
Aug 06, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrected the installation procedure (#849)
* Corrected the installation procedure Now it can be put into a script. * Updated the file tree Necessary after installation instruction change
parent
140db8a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
README.md
README.md
+9
-6
No files found.
README.md
View file @
140fc22a
...
@@ -65,12 +65,15 @@ versions of build tools._
...
@@ -65,12 +65,15 @@ versions of build tools._
$
git clone https://github.com/google/benchmark.git
$
git clone https://github.com/google/benchmark.git
# Benchmark requires Google Test as a dependency. Add the source tree as a subdirectory.
# Benchmark requires Google Test as a dependency. Add the source tree as a subdirectory.
$
git clone https://github.com/google/googletest.git benchmark/googletest
$
git clone https://github.com/google/googletest.git benchmark/googletest
# Go to the library root directory
$
cd
benchmark
# Make a build directory to place the build output.
# Make a build directory to place the build output.
$
mkdir
build
&&
cd
build
$
mkdir
build
&&
cd
build
# Generate a Makefile with cmake.
# Generate a Makefile with cmake.
# Use cmake -G <generator> to generate a different file type.
# Use cmake -G <generator> to generate a different file type.
$
cmake ../
$
cmake ../
# Build the library.
# Build the library.
# Use make -j<number_of_parallel_jobs> to speed up the build process, e.g. make -j8 .
$
make
$
make
```
```
This builds the
`benchmark`
and
`benchmark_main`
libraries and tests.
This builds the
`benchmark`
and
`benchmark_main`
libraries and tests.
...
@@ -78,12 +81,12 @@ On a unix system, the build directory should now look something like this:
...
@@ -78,12 +81,12 @@ On a unix system, the build directory should now look something like this:
```
```
/benchmark
/benchmark
/build
/build
/src
/src
/libbenchmark.a
/libbenchmark.a
/libbenchmark_main.a
/libbenchmark_main.a
/test
/test
...
...
```
```
Next, you can run the tests to check the build.
Next, you can run the tests to check the build.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment