X-Git-Url: https://code.grnet.gr/git/archipelago/blobdiff_plain/0bf9fcf7e506d4478ec1aed1ba885c99c07db408..2ddecabedce388e321dd00e490e266dc28467902:/xseg/xtypes/xobj_test.c diff --git a/xseg/xtypes/xobj_test.c b/xseg/xtypes/xobj_test.c index 29552cd..5d71e88 100644 --- a/xseg/xtypes/xobj_test.c +++ b/xseg/xtypes/xobj_test.c @@ -139,7 +139,9 @@ int basic_test() c, sizeof(struct foo), c*sizeof(struct foo)); printf("Total time: %lu us\n", us); unsigned long tpa = (unsigned long) ((us*1000) / allocations); - printf("Time per allocation: %lu ns\n\n", tpa); + printf("Time per allocation: %lu ns\n", tpa); + unsigned long aps = (unsigned long) ((allocations * 1000000)/us); + printf("Allocations per second: %lu\n\n", aps); return 0; }