https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207022
--- Comment #13 from Steven Hartland <[email protected]> --- How much time is this really using when testing here with == gen == perl -e 'for (1..4200) {my $file = "file$_";open(my $fh, ">", $file) or die "cannot open > $file: $!";}' /== gen == == bin == #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <stdio.h> #include <err.h> #include <sysexits.h> int main(int argc, char* argv[]) { struct stat buf; char name[1024]; int i; for (i = 1; i <= 4200; i++) { sprintf(name, "file%d", i); if (stat(name, &buf) != 0) { printf("Tested %d files\n", i - 1); err(EX_OSERR, NULL); } } printf("Tested %d files\n", i - 1); } /== bin == I'm seeing: /usr/bin/time ./test Tested 4201 files 0.00 real 0.00 user 0.00 sys -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-amd64 To unsubscribe, send any mail to "[email protected]"
