| Up to higher level directory | |||
| Name | Date | Size | |
|---|---|---|---|
| .hgignore | 29-Oct-2010 | 44 | |
| atomic.c | 29-Oct-2010 | 1.8K | |
| bench.sh | 29-Oct-2010 | 16.3K | |
| benchmark_fini.c | 29-Oct-2010 | 1.1K | |
| benchmark_finibatch.c | 29-Oct-2010 | 1.1K | |
| benchmark_finirun.c | 29-Oct-2010 | 1.1K | |
| benchmark_finiworker.c | 29-Oct-2010 | 1.1K | |
| benchmark_init.c | 29-Oct-2010 | 1.1K | |
| benchmark_initbatch.c | 29-Oct-2010 | 1.1K | |
| benchmark_initrun.c | 29-Oct-2010 | 1.1K | |
| benchmark_initworker.c | 29-Oct-2010 | 1.1K | |
| benchmark_optswitch.c | 29-Oct-2010 | 1.1K | |
| benchmark_result.c | 29-Oct-2010 | 1.1K | |
| bind.c | 29-Oct-2010 | 3.2K | |
| BUGS | 29-Oct-2010 | 939 | |
| cachetocache.c | 29-Oct-2010 | 4.4K | |
| cascade_cond.c | 29-Oct-2010 | 5.8K | |
| cascade_fcntl.c | 29-Oct-2010 | 4.5K | |
| cascade_flock.c | 29-Oct-2010 | 4.6K | |
| cascade_lockf.c | 29-Oct-2010 | 4.5K | |
| cascade_mutex.c | 29-Oct-2010 | 4.6K | |
| chdir.c | 29-Oct-2010 | 2.4K | |
| close.c | 29-Oct-2010 | 2.4K | |
| close_tcp.c | 29-Oct-2010 | 4.5K | |
| connection.c | 29-Oct-2010 | 5.6K | |
| dup.c | 29-Oct-2010 | 2.3K | |
| elided.c | 29-Oct-2010 | 1.4K | |
| exec.c | 29-Oct-2010 | 1.9K | |
| exec_bin.c | 29-Oct-2010 | 1.3K | |
| exit.c | 29-Oct-2010 | 2.6K | |
| exp.c | 29-Oct-2010 | 1.6K | |
| fcntl.c | 29-Oct-2010 | 1.8K | |
| fcntl_ndelay.c | 29-Oct-2010 | 1.9K | |
| file_lock.c | 29-Oct-2010 | 1.9K | |
| fork.c | 29-Oct-2010 | 2.2K | |
| getcontext.c | 29-Oct-2010 | 1.6K | |
| getenv.c | 29-Oct-2010 | 2.3K | |
| getpeername.c | 29-Oct-2010 | 3.1K | |
| getpid.c | 29-Oct-2010 | 1.3K | |
| getrusage.c | 29-Oct-2010 | 1.7K | |
| getsockname.c | 29-Oct-2010 | 2.5K | |
| gettimeofday.c | 29-Oct-2010 | 1.6K | |
| isatty.c | 29-Oct-2010 | 2K | |
| libmicro.c | 11-May-2011 | 29.5K | |
| libmicro.h | 29-Oct-2010 | 4.4K | |
| libmicro_main.c | 29-Oct-2010 | 1.1K | |
| listen.c | 29-Oct-2010 | 2.4K | |
| localtime_r.c | 29-Oct-2010 | 1.7K | |
| log.c | 29-Oct-2010 | 1.6K | |
| longjmp.c | 28-Oct-2011 | 1.3K | |
| lrand48.c | 29-Oct-2010 | 1.5K | |
| lseek.c | 29-Oct-2010 | 2.3K | |
| Makefile | 29-Oct-2010 | 2.1K | |
| Makefile.Aix | 29-Oct-2010 | 1,011 | |
| Makefile.benchmarks | 29-Oct-2010 | 1.9K | |
| Makefile.com | 29-Oct-2010 | 3.3K | |
| Makefile.Linux | 29-Oct-2010 | 1K | |
| Makefile.SunOS | 29-Oct-2010 | 1.7K | |
| malloc.c | 29-Oct-2010 | 2.6K | |
| memcpy.c | 29-Oct-2010 | 3K | |
| memmove.c | 29-Oct-2010 | 3K | |
| memrand.c | 29-Oct-2010 | 2.6K | |
| memset.c | 29-Oct-2010 | 3.3K | |
| mk_tarball | 29-Oct-2010 | 524 | |
| mktime.c | 29-Oct-2010 | 2.1K | |
| mmap.c | 29-Oct-2010 | 3.7K | |
| mprotect.c | 29-Oct-2010 | 3.8K | |
| msync.c | 29-Oct-2010 | 3.6K | |
| multiview.sh | 29-Oct-2010 | 5.2K | |
| munmap.c | 29-Oct-2010 | 3.6K | |
| mutex.c | 29-Oct-2010 | 3.2K | |
| nop.c | 29-Oct-2010 | 1.3K | |
| open.c | 29-Oct-2010 | 2.3K | |
| OPENSOLARIS.LICENSE | 29-Oct-2010 | 18.5K | |
| pipe.c | 29-Oct-2010 | 9.7K | |
| poll.c | 29-Oct-2010 | 4.1K | |
| pread.c | 29-Oct-2010 | 2.5K | |
| pthread_create.c | 29-Oct-2010 | 3K | |
| pwrite.c | 29-Oct-2010 | 2.6K | |
| read.c | 29-Oct-2010 | 2.5K | |
| README | 29-Oct-2010 | 2.5K | |
| realpath.c | 29-Oct-2010 | 1.6K | |
| recurse.c | 29-Oct-2010 | 1.8K | |
| recurse2.c | 29-Oct-2010 | 1.1K | |
| select.c | 29-Oct-2010 | 4.2K | |
| semop.c | 29-Oct-2010 | 1.9K | |
| setcontext.c | 29-Oct-2010 | 1.3K | |
| setsockopt.c | 29-Oct-2010 | 1.9K | |
| sigaction.c | 29-Oct-2010 | 1.7K | |
| siglongjmp.c | 28-Oct-2011 | 1.4K | |
| signal.c | 29-Oct-2010 | 1.9K | |
| sigprocmask.c | 29-Oct-2010 | 2K | |
| socket.c | 29-Oct-2010 | 2.6K | |
| socketpair.c | 29-Oct-2010 | 2.1K | |
| stat.c | 29-Oct-2010 | 1.7K | |
| strcasecmp.c | 29-Oct-2010 | 2.9K | |
| strchr.c | 29-Oct-2010 | 2.8K | |
| strcmp.c | 29-Oct-2010 | 2.8K | |
| strcpy.c | 29-Oct-2010 | 2.7K | |
| strftime.c | 29-Oct-2010 | 2.6K | |
| strlen.c | 29-Oct-2010 | 2.7K | |
| strtol.c | 29-Oct-2010 | 1.6K | |
| system.c | 29-Oct-2010 | 1.8K | |
| tattle.c | 29-Oct-2010 | 2.8K | |
| time.c | 29-Oct-2010 | 1.5K | |
| times.c | 29-Oct-2010 | 1.5K | |
| wrapper.sh | 29-Oct-2010 | 1,022 | |
| write.c | 29-Oct-2010 | 2.7K | |
| writev.c | 29-Oct-2010 | 2.8K | |
README
1 # 2 # CDDL HEADER START 3 # 4 # The contents of this file are subject to the terms 5 # of the Common Development and Distribution License 6 # (the "License"). You may not use this file except 7 # in compliance with the License. 8 # 9 # You can obtain a copy of the license at 10 # src/OPENSOLARIS.LICENSE 11 # or http://www.opensolaris.org/os/licensing. 12 # See the License for the specific language governing 13 # permissions and limitations under the License. 14 # 15 # When distributing Covered Code, include this CDDL 16 # HEADER in each file and include the License file at 17 # usr/src/OPENSOLARIS.LICENSE. If applicable, 18 # add the following below this CDDL HEADER, with the 19 # fields enclosed by brackets "[]" replaced with your 20 # own identifying information: Portions Copyright [yyyy] 21 # [name of copyright owner] 22 # 23 # CDDL HEADER END 24 # 25 26 # 27 # Copyright 2005 Sun Microsystems, Inc. All rights reserved. 28 # Use is subject to license terms. 29 # 30 31 Building the tarball 32 -------------------- 33 As long as cc is in your path, (gcc on Linux), 34 35 % tar xf libMicro.tar 36 % make 37 38 will build the benchmark suite. 39 40 Running the benchmarks 41 ----------------------- 42 43 A set of generic scripts to invoke each micro benchmark 44 are created in the bin directory; these may be invoked 45 directly. Note that the actual binaries are created in 46 OS-specific directories; this allows one to build for 47 all varients (x86/sparc/Solaris/Linux) in one place. 48 49 To collect a complete set of benchmarks, use the bench 50 script and redirect its output to a file. 51 52 % ./bench > output 53 54 To compare the output of two or more runs, use multiview in the src 55 directory: 56 57 % ./multiview reference compare1 compare2 compare2 > compare.html 58 % 59 60 where the reference and compare files contain the output of different 61 libmicro runs. 62 63 The compare.html file will allow quick comparisons to be drawn, 64 allowing a variety of experiments to be quickly analyzed. 65 66 All benchmarks support the following options: 67 68 [-1] (single process; overrides -P > 1) 69 [-A] (align with clock) 70 [-B batch-size (default 10)] 71 [-C minimum number of samples (default 0)] 72 [-D duration in msecs (default 10s)] 73 [-E (echo name to stderr)] 74 [-H] (suppress headers) 75 [-I] specify approx. time per op in nsecs 76 [-L] (print argument line) 77 [-M] (reports mean rather than median) 78 [-N test-name ] 79 [-P processes (default 1)] 80 [-S] (print detailed stats) 81 [-T threads (default 1)] 82 [-V] (print the libMicro version and exit) 83 [-W] (flag possible benchmark problems) 84 85 86
