diff options
Diffstat (limited to 'research/experiments/036-faster-loops/bfs-run.c')
| -rw-r--r-- | research/experiments/036-faster-loops/bfs-run.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/research/experiments/036-faster-loops/bfs-run.c b/research/experiments/036-faster-loops/bfs-run.c index a3d9d79..4d5ca82 100644 --- a/research/experiments/036-faster-loops/bfs-run.c +++ b/research/experiments/036-faster-loops/bfs-run.c @@ -61,6 +61,11 @@ int main(int argc, char **argv) { return 1; } } + if (getenv("BFS_WAIT")) { /* loaded: a counter attaches, then a line on stdin starts the searches */ + fprintf(stderr, "loaded\n"); + fflush(stderr); + (void)getchar(); + } double *took = malloc(rounds * sizeof(*took)); for (size_t r = 0; r < rounds; ++r) { uint32_t from = (uint32_t)(next() % nodes), to = (uint32_t)(next() % nodes); |
