diff --git a/examples/bench_20/main.c b/examples/bench_20/main.c new file mode 100644 index 0000000000000000000000000000000000000000..1507b0b4c5281b41e95c097b399a42b7e40ee098 --- /dev/null +++ b/examples/bench_20/main.c @@ -0,0 +1,50 @@ +#include +#include "../../reowolf.h" +#include "../utility.c" +int main(int argc, char** argv) { + // same as bench 15 but connecting to 87.210.104.102 and getting at 0.0.0.0 + // also, doing 10k reps (down from 100k) to save time + int i, cid; + cid = atoi(argv[1]); + printf("cid %d\n", cid); + printf("Error str `%s`\n", reowolf_error_peek(NULL)); + + unsigned char pdl[] = ""; + Arc_ProtocolDescription * pd = protocol_description_parse(pdl, sizeof(pdl)-1); + Connector * c = connector_new_with_id(pd, cid); + + bool seen_delim = false; + for(i=2; i