Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
belle-sip
Commits
dfefba74
Commit
dfefba74
authored
Jun 08, 2017
by
jehan
Browse files
change fast uri test threshold to avoid wrong detection
parent
5ea99706
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tester/belle_sip_fast_uri_tester.c
tester/belle_sip_fast_uri_tester.c
+1
-1
No files found.
tester/belle_sip_fast_uri_tester.c
View file @
dfefba74
...
...
@@ -49,7 +49,7 @@ static void perf(void) {
t2
=
bctbx_get_cur_time_ms
()
-
start
;
belle_sip_message
(
"t2 = %"
PRIu64
""
,
t2
);
#ifdef __APPLE__
/*antlr3.4 seems much more sensitive to belle_sip_fast_uri_parse optimisation than 3.2, so reserving this test to apple platform where antlr3.2 is unlikely to be found*/
BC_ASSERT_GREATER
(((
float
)(
t1
-
t2
))
/
(
float
)(
t1
),
0
.
5
,
float
,
"%f"
);
BC_ASSERT_GREATER
(((
float
)(
t1
-
t2
))
/
(
float
)(
t1
),
0
.
4
,
float
,
"%f"
);
#endif
}
static
test_t
tests
[]
=
{
TEST_NO_TAG
(
"perf"
,
perf
)};
...
...
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