Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
5ade100f
Commit
5ade100f
authored
May 31, 2012
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libprocess benchmark
parent
e4915524
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
81 additions
and
3 deletions
+81
-3
benchmarks/Makefile.am
benchmarks/Makefile.am
+2
-3
benchmarks/mixed_case.cpp
benchmarks/mixed_case.cpp
+0
-0
benchmarks/mk_mixed_case_libprocess.sh
benchmarks/mk_mixed_case_libprocess.sh
+79
-0
No files found.
benchmarks/Makefile.am
View file @
5ade100f
...
...
@@ -3,12 +3,11 @@ ACLOCAL_AMFLAGS = -I ../m4
AM_CXXFLAGS
=
-I
../
--std
=
c++0x
-pedantic
-Wall
-Wextra
noinst_PROGRAMS
=
actor_creation mailbox_performance mixed_case
_libcppa mixed_case_libprocess
matching distributed
noinst_PROGRAMS
=
actor_creation mailbox_performance mixed_case matching distributed
actor_creation_SOURCES
=
actor_creation.cpp
mailbox_performance_SOURCES
=
mailbox_performance.cpp
mixed_case_libcppa_SOURCES
=
mixed_case_libcppa.cpp
mixed_case_libprocess_SOURCES
=
mixed_case_libprocess.cpp
mixed_case_SOURCES
=
mixed_case.cpp
matching_SOURCES
=
matching.cpp
distributed_SOURCES
=
distributed.cpp
...
...
benchmarks/mixed_case
_libcppa
.cpp
→
benchmarks/mixed_case.cpp
View file @
5ade100f
File moved
benchmarks/mk_mixed_case_libprocess.sh
0 → 100755
View file @
5ade100f
#!/bin/bash
# quick & dirty: eval args to enable CXX=... and CXXFLAGS=...
for
arg
in
"
$@
"
;
do
eval
"
$arg
"
done
if
test
""
=
"
$CXX
"
;
then
CXX
=
g++
fi
function
verbose_exec
{
echo
$1
eval
$1
if
test
"0"
!=
"
$?
"
;
then
echo
;
echo
"command failed!"
exit
fi
}
function
check_var
{
if
test
""
=
"
$1
"
;
then
echo
"something went wrong ...
$2
not found"
exit
fi
}
function
fetch_lib
{
find mesos/third_party/libprocess
-name
"
$1
"
if
test
"
$2
"
=
"true"
;
then
echo
"something went wrong ...
$1
not found"
fi
}
if
!
test
-d
mesos
;
then
echo
"fetch mesos (for libprocess)"
verbose_exec
"git clone https://github.com/apache/mesos.git"
else
echo
"found mesos repository"
fi
LIBFILE
=
$(
fetch_lib libprocess.a
)
LIBGLOGFILE
=
$(
fetch_lib libglog.a
)
LIBEVFILE
=
$(
fetch_lib libev.a
)
echo
"LIBFILE=
$LIBFILE
"
echo
"LIBGLOGFILE=
$LIBGLOGFILE
"
echo
"LIBEVFILE=
$LIBEVFILE
"
if
test
""
=
"
$LIBFILE
"
-o
""
=
"
$LIBGLOGFILE
"
-o
""
=
"
$LIBEVFILE
"
;
then
CURR
=
$PWD
echo
"build libprocess"
cd
mesos/third_party/libprocess/
verbose_exec
"autoreconf -Wnone -i && ./configure CXX=
\"
$CXX
\"
CXXFLAGS=
\"
$CXXFLAGS
-D_XOPEN_SOURCE
\"
&& make"
echo
"build third_party libraries"
cd
third_party
for
dir
in
*
;
do
if
test
-d
$dir
;
then
# skip boost in third_party directory
if
[[
"
$dir
"
==
glog
*
]]
||
[[
"
$dir
"
==
libev
*
]]
;
then
echo
"cd
$dir
"
cd
$dir
verbose_exec
"autoreconf -i ; ./configure CXX=
\"
$CXX
\"
CXXFLAGS=
\"
$CXXFLAGS
\"
; make"
echo
"cd .."
cd
..
fi
fi
done
cd
$CURR
LIBFILE
=
$(
fetch_lib libprocess.a
true
)
LIBGLOGFILE
=
$(
fetch_lib libglog.a
true
)
LIBEVFILE
=
$(
fetch_lib libev.a
true
)
else
echo
"found libprocess library:
$LIBFILE
"
fi
LIBDIRS
=
"-L
$(
dirname
"
$LIBFILE
"
)
-L
$(
dirname
"
$LIBGLOGFILE
"
)
-L
$(
dirname
"
$LIBEVFILE
"
)
"
verbose_exec
"
$CXX
-std=c++11
$CXXFLAGS
-Imesos/third_party/libprocess/include/
$LIBDIRS
-lprocess -lglog -lev mixed_case_libprocess.cpp -o mixed_case_libprocess"
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