A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix smpi_execute_benched.
[simgrid.git]
/
teshsuite
/
xbt
/
heap_bench
/
heap_bench.c
diff --git
a/teshsuite/xbt/heap_bench/heap_bench.c
b/teshsuite/xbt/heap_bench/heap_bench.c
index
3d2c542
..
47797d2
100644
(file)
--- a/
teshsuite/xbt/heap_bench/heap_bench.c
+++ b/
teshsuite/xbt/heap_bench/heap_bench.c
@@
-10,6
+10,7
@@
#include <math.h>
#include <xbt/xbt_os_time.h>
#include <math.h>
#include <xbt/xbt_os_time.h>
+#include "simgrid/msg.h"
#include "xbt/heap.h"
#include "xbt/sysdep.h"
#include "xbt/heap.h"
#include "xbt/sysdep.h"
@@
-89,10
+90,11
@@
static void test_heap_mean_operation(int size)
xbt_heap_free(heap);
}
xbt_heap_free(heap);
}
-int main(int argc, char
**
argv)
+int main(int argc, char
**
argv)
{
{
- int size;
- for (size = 100; size < 10000; size *= 10) {
+ MSG_init(&argc, argv);
+
+ for (int size = 100; size < 10000; size *= 10) {
test_heap_validity(size);
test_heap_mean_operation(size);
}
test_heap_validity(size);
test_heap_mean_operation(size);
}