Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
c36eeed0
Unverified
Commit
c36eeed0
authored
Apr 20, 2018
by
Yilun Chong
Committed by
GitHub
Apr 20, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4520 from BSBandme/fix_kokoro_benchmark_build
Fix benchmark build
parents
4ca46ede
8f350736
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
Makefile.am
benchmarks/Makefile.am
+7
-7
build.sh
kokoro/linux/benchmark/build.sh
+1
-1
No files found.
benchmarks/Makefile.am
View file @
c36eeed0
...
...
@@ -132,7 +132,7 @@ javac_middleman: $(java_benchmark_testing_files) protoc_middleman protoc_middlem
java-benchmark
:
javac_middleman
@
echo
"Writing shortcut script java-benchmark..."
@
echo
'#! /bin/sh'
>
java-benchmark
@
echo
'#! /bin/
ba
sh'
>
java-benchmark
@
echo
'all_data=""'
>>
java-benchmark
@
echo
'conf=()'
>>
java-benchmark
@
echo
'data_files=""'
>>
java-benchmark
...
...
@@ -178,7 +178,7 @@ nodist_libbenchmark_messages_la_SOURCES = \
python-pure-python-benchmark
:
python_add_init
@
echo
"Writing shortcut script python-pure-python-benchmark..."
@
echo
'#! /bin/sh'
>
python-pure-python-benchmark
@
echo
'#! /bin/
ba
sh'
>
python-pure-python-benchmark
@
echo export
LD_LIBRARY_PATH
=
$(top_srcdir)
/src/libprotobuf.la
>>
python-pure-python-benchmark
@
echo export
DYLD_LIBRARY_PATH
=
$(top_srcdir)
/src/libprotobuf.la
>>
python-pure-python-benchmark
@
echo export
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION
=
\'
python
\'
>>
python-pure-python-benchmark
...
...
@@ -188,7 +188,7 @@ python-pure-python-benchmark: python_add_init
python-cpp-reflection-benchmark
:
python_add_init
@
echo
"Writing shortcut script python-cpp-reflection-benchmark..."
@
echo
'#! /bin/sh'
>
python-cpp-reflection-benchmark
@
echo
'#! /bin/
ba
sh'
>
python-cpp-reflection-benchmark
@
echo export
LD_LIBRARY_PATH
=
$(top_srcdir)
/src/libprotobuf.la
>>
python-cpp-reflection-benchmark
@
echo export
DYLD_LIBRARY_PATH
=
$(top_srcdir)
/src/libprotobuf.la
>>
python-cpp-reflection-benchmark
@
echo export
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION
=
\'
cpp
\'
>>
python-cpp-reflection-benchmark
...
...
@@ -198,7 +198,7 @@ python-cpp-reflection-benchmark: python_add_init
python-cpp-generated-code-benchmark
:
python_add_init libbenchmark_messages.la
@
echo
"Writing shortcut script python-cpp-generated-code-benchmark..."
@
echo
'#! /bin/sh'
>
python-cpp-generated-code-benchmark
@
echo
'#! /bin/
ba
sh'
>
python-cpp-generated-code-benchmark
@
echo export
LD_LIBRARY_PATH
=
$(top_srcdir)
/src/libprotobuf.la
>>
python-cpp-generated-code-benchmark
@
echo export
DYLD_LIBRARY_PATH
=
$(top_srcdir)
/src/libprotobuf.la
>>
python-cpp-generated-code-benchmark
@
echo export
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION
=
\'
cpp
\'
>>
python-cpp-generated-code-benchmark
...
...
@@ -253,7 +253,7 @@ go_protoc_middleman: make_tmp_dir $(top_srcdir)/src/protoc$(EXEEXT) $(benchmarks
go-benchmark
:
go_protoc_middleman
@
echo
"Writing shortcut script go-benchmark..."
@
echo
'#! /bin/sh'
>
go-benchmark
@
echo
'#! /bin/
ba
sh'
>
go-benchmark
@
echo
'cd
$(srcdir)
/go'
>>
go-benchmark
@
echo
'all_data=""'
>>
go-benchmark
@
echo
'conf=()'
>>
go-benchmark
...
...
@@ -409,7 +409,7 @@ gogoslick_protoc_middleman: make_tmp_dir_gogo $(top_srcdir)/src/protoc$(EXEEXT)
gogo_data
=
$$
(
find
.
-type
f
-name
"dataset.*.pb"
-path
"./tmp/*"
)
generate-gogo-benchmark-code
:
@
echo
'#! /bin/sh'
>
generate-gogo-benchmark-code
@
echo
'#! /bin/
ba
sh'
>
generate-gogo-benchmark-code
@
echo
'cp
$(srcdir)
/go/go_benchmark_test.go tmp/$$1/benchmark_code/$$1_benchmark1_test.go'
>>
generate-gogo-benchmark-code
@
echo
'sed -i -e "s/\.\.\/tmp/../g" tmp/$$1/benchmark_code/$$1_benchmark1_test.go'
>>
generate-gogo-benchmark-code
@
echo
'sed -i -e "s/b\.Run(\"\(.*\)\"/b.Run(\"\1\_$$1\"/g" tmp/$$1/benchmark_code/$$1_benchmark1_test.go'
>>
generate-gogo-benchmark-code
...
...
@@ -424,7 +424,7 @@ generate_all_gogo_benchmark_code: generate-gogo-benchmark-code make_tmp_dir_gogo
gogo-benchmark
:
@
echo
"Writing shortcut script gogo-benchmark..."
@
echo
'#! /bin/sh'
>
gogo-benchmark
@
echo
'#! /bin/
ba
sh'
>
gogo-benchmark
@
echo
'cd tmp/$$1/benchmark_code'
>>
gogo-benchmark
@
echo
'shift'
>>
gogo-benchmark
@
echo
'all_data=""'
>>
gogo-benchmark
...
...
kokoro/linux/benchmark/build.sh
View file @
c36eeed0
...
...
@@ -27,7 +27,7 @@ cd $oldpwd
./configure
CXXFLAGS
=
"-fPIC -O2"
make
-j8
cd
python
python setup.py build
--cpp_implementation
python setup.py
-q
build
--cpp_implementation
pip
install
.
...
...
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