Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
timeout.c
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
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
Kirill Smelkov
timeout.c
Commits
54322823
Commit
54322823
authored
Feb 24, 2016
by
William Ahern
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'nmathewson-testing'
parents
54e4bc4d
86c12d14
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
466 additions
and
3 deletions
+466
-3
Makefile
Makefile
+11
-3
test-timeout.c
test-timeout.c
+455
-0
No files found.
Makefile
View file @
54322823
...
...
@@ -2,7 +2,7 @@ CPPFLAGS = -DTIMEOUT_DEBUG
CFLAGS
=
-O2
-march
=
native
-g
-Wall
-Wextra
-Wno-unused-parameter
LUA
=
lua
all
:
bench.so bench-wheel.so bench-heap.so bench-llrb.so
all
:
bench.so bench-wheel.so bench-heap.so bench-llrb.so
test-timeout
WHEEL_BIT
=
6
WHEEL_NUM
=
4
...
...
@@ -28,6 +28,8 @@ timeout.o: timeout.c
bench
:
bench.c timeout.h
$(CC)
$(CPPFLAGS)
$(CFLAGS)
-o
$@
$<
-ldl
test-timeout
:
timeout.o test-timeout.o
$(CC)
$(CPPFLAGS)
$(CFLAGS)
-o
$@
timeout.o test-timeout.o
ifeq
($(shell uname -s), Darwin)
SOFLAGS
=
-bundle
-undefined
dynamic_lookup
...
...
@@ -86,7 +88,9 @@ bench-%.so: bench-%.c timeout.h
$(LUA)
bench-expire.lua
$<
>
$@
.tmp
mv
$@
.tmp
$@
bench.eps
:
bench.plt $(foreach OP
,
add del expire
,
wheel-$(OP).dat heap-$(OP).dat)
DATS
=
$(
foreach
OP, add del expire, wheel-
$(OP)
.dat heap-
$(OP)
.dat
)
bench.eps
:
bench.plt $(DATS)
gnuplot bench.plt
>
$@
.tmp
mv
$@
.tmp
$@
...
...
@@ -96,7 +100,11 @@ bench.pdf: bench.eps
.PHONY
:
clean clean~
clean
:
$(RM)
-r
timeout
timeout8 timeout16 timeout32 timeout64
*
.dSYM
*
.so
*
.dat
*
.eps
$(RM)
timeout
timeout8 timeout16 timeout32 timeout64
$(RM)
test-timeout
*
.o
$(RM)
bench.so bench-
*
.so
$(RM)
-r
*
.dSYM
$(RM)
$(DATS)
bench.eps bench.pdf
clean~
:
clean
$(RM)
*
~
test-timeout.c
0 → 100644
View file @
54322823
This diff is collapsed.
Click to expand it.
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