Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
spdlog
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
spdlog
Commits
e0020eb7
Commit
e0020eb7
authored
Nov 13, 2014
by
Paul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add mingw build and run script for bench example
parent
957b3d4c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
58 additions
and
0 deletions
+58
-0
Makefile.mingw
bench/Makefile.mingw
+30
-0
run_all.bat
bench/run_all.bat
+28
-0
No files found.
bench/Makefile.mingw
0 → 100644
View file @
e0020eb7
CXX
=
g++
CXXFLAGS
=
-D_WIN32_WINNT
=
0x600
-march
=
native
-Wall
-Wextra
-Wshadow
-pedantic
-std
=
c++11
-pthread
-Wl
,--no-as-needed
-I
../include
CXX_RELEASE_FLAGS
=
-O3
-flto
all
:
spdlog-bench spdlog-bench-mt boost-bench boost-bench-mt
spdlog-bench
:
spdlog-bench.cpp
$(CXX)
spdlog-bench.cpp
-o
spdlog-bench
$(CXXFLAGS)
$(CXX_RELEASE_FLAGS)
spdlog-bench-mt
:
spdlog-bench-mt.cpp
$(CXX)
spdlog-bench-mt.cpp
-o
spdlog-bench-mt
$(CXXFLAGS)
$(CXX_RELEASE_FLAGS)
BOOST_FLAGS
=
-DBOOST_LOG_DYN_LINK
-I
$(BOOST_ROOT)
/include
-L
$(BOOST_ROOT)
/lib
-lboost_log
-lboost_log_setup
-lboost_filesystem
-lboost_system
-lboost_thread
-lboost_regex
-lboost_date_time
-lboost_chrono
boost-bench
:
boost-bench.cpp
$(CXX)
boost-bench.cpp
-o
boost-bench
$(CXXFLAGS)
$(BOOST_FLAGS)
$(CXX_RELEASE_FLAGS)
boost-bench-mt
:
boost-bench-mt.cpp
$(CXX)
boost-bench-mt.cpp
-o
boost-bench-mt
$(CXXFLAGS)
$(BOOST_FLAGS)
$(CXX_RELEASE_FLAGS)
clean
:
rm
-f
*
.o logs/
*
.txt spdlog-bench spdlog-bench-mt boost-bench boost-bench-mt
rebuild
:
clean all
bench/run_all.bat
0 → 100644
View file @
e0020eb7
@echo off
echo Running benchmarks (all with 1000,000 writes to the logs folder)
echo ==================================
echo boost-bench (single thread)
echo %time%
.\boost-bench
echo %time%
echo ==================================
choice /n /c y /d y /t 1 >NUL
echo spdlog-bench (single thread)
echo %time%
.\spdlog-bench
echo %time%
echo ==================================
choice /n /c y /d y /t 1 >NUL
echo boost-bench-mt (10 threads, single logger)
echo %time%
.\boost-bench-mt
echo %time%
echo ==================================
choice /n /c y /d y /t 1 >NUL
echo spdlog-bench-mt (10 threads, single logger)
echo %time%
.\spdlog-bench-mt
echo %time%
echo ==================================
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