aboutsummaryrefslogtreecommitdiff
path: root/tools/tools/syscall_timing
Commit message (Collapse)AuthorAgeFilesLines
* Add microbenchmark for create/unlink of a zero-byte file.Robert Watson2010-10-241-3/+32
| | | | | | | | Sponsored by: Google, Inc. MFC after: 2 weeks Notes: svn path=/head/; revision=214261
* Validate syscall_timing test names before starting to provide earlierRobert Watson2010-10-221-12/+68
| | | | | | | | | | | | | | | | | feedback regarding user error. Provide default loop and timing settings. Add a new test that just times pread() without the open()/close(). Mark tests requiring a path argument so we can provide better feedback to the user than EFAULT on (null). Sponsored by: Google, Inc. MFC after: 2 weeks Notes: svn path=/head/; revision=214202
* Universally use uintmax_t in syscall_timing; rearrange arithmetic toRobert Watson2010-10-211-64/+65
| | | | | | | | | | | suffer fewer rounding errors with smaller numbers; fix argc validation so multiple tests run on a single command line. Sponsored by: Google, Inc. MFC after: 2 weeks Notes: svn path=/head/; revision=214185
* Add Cambridge/Google tag since the copyright has been updated.Robert Watson2010-10-211-0/+3
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=214154
* Further syscall_timing improvements: allow an arbitrary "path" stringRobert Watson2010-10-211-45/+41
| | | | | | | | | | | argument to be passed on the command line, allowing file-related tests to be pointed at wherever desired. Sponsored by: Google, Inc. MFC after: 2 weeks Notes: svn path=/head/; revision=214151
* Fix bug in recent syscall_timing change: measure the number of iterationsRobert Watson2010-10-211-3/+4
| | | | | | | | | | | each loop, rather than once up front. The distinction is unimportant when doing a fix iteration count, but when using a timer, it should vary. Sponsored by: Google, Inc. MFC after: 2 weeks Notes: svn path=/head/; revision=214145
* Further enhancements to syscall_timing:Robert Watson2010-10-211-79/+258
| | | | | | | | | | | | | | | - Use getopt rather than hand-parsed arguments - Allow iterations to be specified and/or a new number of seconds bound on the number of iterations - Fix printout of timer resolution - Add new tests, such as TCP and UDP socket creation, and open/read/close of /dev/zero and /dev/null. Sponsored by: Google, Inc. MFC after: 2 weeks Notes: svn path=/head/; revision=214142
* Improve the structure and implementation of the syscall_timingRobert Watson2010-10-211-106/+374
| | | | | | | | | | | | | | | | | | | microbenchmark suite: - Use common benchmark_start/benchmark_stop routines to simplify individual benchmarks. - Add a central table of tests with names, where new tests can be hooked in easily. - Add new benchmarks for dup, shm_open, shm_open + fstat, fork, vfork, vfork + exec, chroot, setuid. - Accept a number of loops, not just a number of iterations. - Report results more usefully in a table. Sponsored by: Google, Inc. MFC after: 2 weeks Notes: svn path=/head/; revision=214135
* Add a few more system call timing cases:Robert Watson2005-08-031-10/+65
| | | | | | | | | | Rename current socket creation test to socket_stream. Add new socket_dgram test. Add new socketpair_stream test. Add new socketpair_dgram test. Notes: svn path=/head/; revision=148681
* Centralize usage in usage(), and use in preference to fprintf().Robert Watson2005-04-101-8/+16
| | | | | | | | | List possible tests in usage(). When running a test, print the test name. Notes: svn path=/head/; revision=144850
* Start the dreaded NOFOO -> NO_FOO conversion.Ruslan Ermilov2004-12-211-1/+1
| | | | | | | OK'ed by: core Notes: svn path=/head/; revision=139103
* For variables that are only checked with defined(), don't provideRuslan Ermilov2004-10-241-1/+1
| | | | | | | any fake value. Notes: svn path=/head/; revision=136910
* Add syscall_timing, a simple timing micro-benchmark for someRobert Watson2004-09-302-0/+195
characteristic system calls. I've been sending this to people for a while, and figured it would be more efficient to just put it in CVS. Notes: svn path=/head/; revision=135952