diff options
Diffstat (limited to 'research/experiments/038-past-c')
| -rw-r--r-- | research/experiments/038-past-c/bfs-run.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/research/experiments/038-past-c/bfs-run.c b/research/experiments/038-past-c/bfs-run.c index 4d5ca82..ad3d10a 100644 --- a/research/experiments/038-past-c/bfs-run.c +++ b/research/experiments/038-past-c/bfs-run.c @@ -4,7 +4,8 @@ * as rows, then ROUNDS searches from fixed starts, each timed. No host, no * store: what the interpreter costs. * - * bfs-run MODULE NODES EDGES ROUNDS a JSON line per search, then the median */ + * bfs-run MODULE NODES EDGES ROUNDS a JSON line per search, then the median + * (BFS_WARM: one search before them, from node 0 to node 1, not reported) */ #define _POSIX_C_SOURCE 200809L #include "module.h" #include <stdio.h> @@ -61,6 +62,10 @@ int main(int argc, char **argv) { return 1; } } + if (getenv("BFS_WARM")) { /* one search first, not reported: what packs the edges (022) left out of what is counted */ + unsigned char eight[8] = {0, 0, 0, 0, 1, 0, 0, 0}; + if (pure_app_message(&app, (uint32_t)route, NULL, -1, (PureSpan){eight, 8}) != PURE_OK) return 1; + } if (getenv("BFS_WAIT")) { /* loaded: a counter attaches, then a line on stdin starts the searches */ fprintf(stderr, "loaded\n"); fflush(stderr); |
