Add an aliases benchmark

This commit is contained in:
ridiculousfish 2019-11-23 11:53:49 -08:00
parent 98a98b1424
commit 03a289c9ef
2 changed files with 1103 additions and 0 deletions

File diff suppressed because it is too large Load diff

View file

@ -108,6 +108,7 @@ static void print_rusage_self(FILE *fp) {
fprintf(fp, " rusage self:\n"); fprintf(fp, " rusage self:\n");
fprintf(fp, " user time: %llu ms\n", tv_to_msec(rs.ru_utime)); fprintf(fp, " user time: %llu ms\n", tv_to_msec(rs.ru_utime));
fprintf(fp, " sys time: %llu ms\n", tv_to_msec(rs.ru_stime)); fprintf(fp, " sys time: %llu ms\n", tv_to_msec(rs.ru_stime));
fprintf(fp, " total time: %llu ms\n", tv_to_msec(rs.ru_utime) + tv_to_msec(rs.ru_stime));
fprintf(fp, " max rss: %ld kb\n", rss_kb); fprintf(fp, " max rss: %ld kb\n", rss_kb);
fprintf(fp, " signals: %ld\n", rs.ru_nsignals); fprintf(fp, " signals: %ld\n", rs.ru_nsignals);
#endif #endif