diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 18:24:20 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 18:24:20 +0000 |
commit | 483eb2f56657e8e7f419ab1a4fab8dce9ade8609 (patch) | |
tree | e5d88d25d870d5dedacb6bbdbe2a966086a0a5cf /src/boost/libs/endian/benchmark | |
parent | Initial commit. (diff) | |
download | ceph-upstream.tar.xz ceph-upstream.zip |
Adding upstream version 14.2.21.upstream/14.2.21upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/boost/libs/endian/benchmark')
-rw-r--r-- | src/boost/libs/endian/benchmark/Jamfile.v2 | 25 | ||||
-rw-r--r-- | src/boost/libs/endian/benchmark/test.bat | 12 |
2 files changed, 37 insertions, 0 deletions
diff --git a/src/boost/libs/endian/benchmark/Jamfile.v2 b/src/boost/libs/endian/benchmark/Jamfile.v2 new file mode 100644 index 00000000..f61061a0 --- /dev/null +++ b/src/boost/libs/endian/benchmark/Jamfile.v2 @@ -0,0 +1,25 @@ +# Build and install benchmark programs + +# Copyright Beman Dawes 2013 +# Distributed under the Boost Software License, Version 1.0. +# See www.boost.org/LICENSE_1_0.txt + +project + : source-location ../test : requirements + <toolset>msvc:<asynch-exceptions>on + <library>/boost/timer//boost_timer + ; + +SOURCES = speed_test speed_test_functions ; + +exe "speed_test" + : $(SOURCES).cpp + : <toolset>gcc:<cxxflags>-march=native + ; + +exe "loop_time_test" + : loop_time_test.cpp + : <toolset>gcc:<cxxflags>-march=native + ; + +install bin : speed_test loop_time_test ; diff --git a/src/boost/libs/endian/benchmark/test.bat b/src/boost/libs/endian/benchmark/test.bat new file mode 100644 index 00000000..a8056d89 --- /dev/null +++ b/src/boost/libs/endian/benchmark/test.bat @@ -0,0 +1,12 @@ +b2 -a toolset=msvc-14.0 variant=release link=static address-model=64 +bin\loop_time_test 1000 >msvc-loop-time.html +msvc-loop-time.html + +echo The GCC static build does not work on Windows, probably because of a bjam/b2 bug +b2 -a toolset=gcc-c++11 variant=release link=static address-model=64 +bin\loop_time_test 1000 >gcc-loop-time.html +gcc-loop-time.html + +rem Copyright Beman Dawes 2015 +rem Distributed under the Boost Software License, Version 1.0. +rem See www.boost.org/LICENSE_1_0.txt |