projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
fc5bd17
)
benchtests: Add medium cases and increase iters in bench-memset.c
author
Noah Goldstein
<goldstein.w.n@gmail.com>
Fri, 24 Sep 2021 23:09:47 +0000
(18:09 -0500)
committer
Noah Goldstein
<goldstein.w.n@gmail.com>
Fri, 8 Oct 2021 20:13:06 +0000
(15:13 -0500)
No bug.
This commit adds new medium size cases for lengths in [512, 1024). As
well it increase the iters to INNER_LOOP_ITERS_LARGE for more reliable
results.
Signed-off-by: Noah Goldstein <goldstein.w.n@gmail.com>
benchtests/bench-memset.c
patch
|
blob
|
history
diff --git
a/benchtests/bench-memset.c
b/benchtests/bench-memset.c
index
d6619b4
..
4284cb1
100644
(file)
--- a/
benchtests/bench-memset.c
+++ b/
benchtests/bench-memset.c
@@
-43,7
+43,7
@@
static void
do_one_test (json_ctx_t *json_ctx, impl_t *impl, CHAR *s,
int c __attribute ((unused)), size_t n)
{
- size_t i, iters = INNER_LOOP_ITERS;
+ size_t i, iters = INNER_LOOP_ITERS
_LARGE
;
timing_t start, stop, cur;
TIMING_NOW (start);
@@
-118,7
+118,7
@@
test_main (void)
if (i & (i - 1))
do_test (&json_ctx, 0, c, i);
}
- for (i = 32; i <
512
; i+=32)
+ for (i = 32; i <
1024
; i+=32)
{
do_test (&json_ctx, 0, c, i);
do_test (&json_ctx, i, c, i);