diff options
author | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2019-04-06 10:22:38 +0200 |
---|---|---|
committer | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2019-04-06 10:22:38 +0200 |
commit | ee711720964905a34fd78669f2f3e996287c8d33 (patch) | |
tree | b28f73b78d9c6df0fcd7c758540e3951701e20ec /test/monniaux | |
parent | e37652d0419529aa86d886ea6cc2d9c06eac6186 (diff) | |
download | compcert-kvx-ee711720964905a34fd78669f2f3e996287c8d33.tar.gz compcert-kvx-ee711720964905a34fd78669f2f3e996287c8d33.zip |
there seems to be some cache preload involved?
Diffstat (limited to 'test/monniaux')
-rw-r--r-- | test/monniaux/binary_search/binary_search.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/monniaux/binary_search/binary_search.c b/test/monniaux/binary_search/binary_search.c index 73e77a6c..8cc6f565 100644 --- a/test/monniaux/binary_search/binary_search.c +++ b/test/monniaux/binary_search/binary_search.c @@ -58,12 +58,13 @@ int main () { random_ascending_fill(buf, n); timestamp0 = get_current_cycle()-timestamp0; + my_bsearch(buf, n, v); cycle_t timestamp1 = get_current_cycle(); index pos1 = my_bsearch(buf, n, v); timestamp1 = get_current_cycle()-timestamp1; cycle_t timestamp2 = get_current_cycle(); - index pos2 = my_bsearch(buf, n, v); + index pos2 = my_bsearch2(buf, n, v); timestamp2 = get_current_cycle()-timestamp2; printf("position1: %d\n" |