Skip to content

Commit

Permalink
Add benchmarks.
Browse files Browse the repository at this point in the history
Remove generated files.

First buildconf complete.

Start httpperf library conf fixes.

httperf-0.9.0 and references. Possibly a fork, but no release since 2007

Forgot httperf/man

Initial Add: Iozone3, under evaluation regarding Open Source licensing problems.

Run shell updates.

Benchmark Build modifications

Add Yocto recipes-benchmarks to get in sync, and modify with current benchmark versions where applicable.

First Add: Bonnie to Autotools.

New template run.sh. Simulator options for all scripts.

Ported 11 cross compilers.

First add: Memtester

Add lttng. Generic Autotools for iozone3 and memtester.

Mods for Ubuntu 10.04 autotools.

First distcheck

First Add Tiobench 0.4.1

Merge Ubuntu porting.

Benchmark Adds.

Add all Open Source Benchmarks (Latest Versions)
  • Loading branch information
Rick Foos authored and rfoos committed Dec 9, 2011
1 parent 584dd33 commit 3d52692
Show file tree
Hide file tree
Showing 764 changed files with 272,428 additions and 172 deletions.
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
html/
aclocal.m4
autom4te.cache
.deps
depcomp
Makefile.in
configure.in
configure
config.guess
config.sub
config.log
config.status
stamp-h1
install-sh
missing
config.h.in
compile
10 changes: 10 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
[submodule "buildconf"]
path = buildconf
url = git://buildconf.git.sourceforge.net/gitroot/buildconf/buildconf
[submodule "html"]
path = html
branch = gh-pages
url = git@github.com:rickfoosusa/openbenchmarks.git
[submodule "lttng/benchmarks"]
path = lttng/benchmarks
url = git://git.lttng.org/benchmarks.git
[submodule "lttng/ust"]
path = lttng/ust
url = git://git.lttng.org/ust.git
9 changes: 9 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## Makefile dependencies for openbenchmarks.
# @author Rick Foos
# @file
# Use --host= to set cross, despite warnings...

AUTOMAKE_OPTIONS = foreign

SUBDIRS = @subdirs@ $(MAYBE_DIRS)
EXTRA_DIST = README
34 changes: 27 additions & 7 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,36 @@ If these are popular, a suite of microcontroller benchmarks can be done, but
with much smaller kernels, and radically different toolchains.

Rick Foos at Solengtech dot Com.
Packages:
buildconf
Liense: BSD License
Source: git clone git://buildconf.git.sourceforge.net/gitroot/buildconf/buildconf
Download: http://sourceforge.net/projects/buildconf/files/latest`
Authors: Confirming Names.
Status: Used as download ATM, will layer this with git as we go forward.

Buildconf - git://buildconf.git.sourceforge.net/gitroot/buildconf/buildconf
Buildconf - http://sourceforge.net/projects/buildconf/files/latest
Crosstool-ng - http://crosstool-ng.org/download/crosstool-ng/http://crosstool-ng.org/download/crosstool-ng/
Crosstool-ng - hg clone http://crosstool-ng.org/hg/crosstool-ng

iperf - http://sourceforge.net/projects/iperf/files/iperf-2.0.5.tar.gz/download
dhrystone -
postmark -
lmbench - http://sourceforge.net/projects/lmbench/files/development/lmbench-3.0-a9/lmbench-3.0-a9.tgz/download
netperf - ftp://ftp.netperf.org/netperf/netperf-2.5.0.tar.gz
httperf - http://code.google.com/p/httperf/downloads/detail?name=httperf-0.9.0.tar.gz&can=2&q=
httperf - ftp://ftp.hpl.hp.com/pub/httperf/httperf-0.9.0.tar.gz
iozone3 - http://www.iozone.org/src/current/iozone3_263.tar
iozone3 - http://iozone.org/src/current/iozone3_397.tar
iozone - https://admin.fedoraproject.org/pkgdb/users/packages/nhorman?_csrf_token=f4a54d599ac121b8d4e353d4579077cb44cc59c8
iozone3 - http://linux.softpedia.com/get/System/Benchmarks/IOzone-1355.shtml
iozone3 - http://linux.softpedia.com/dyn-postdownload.php?p=1355&t=0&i=3
memtester - http://pyropus.ca/software/memtester/old-versions/memtester-4.2.2.tar.gz
tiobench - cvs -d:pserver:anonymous@cvs.tiobench.sourceforge.net:/cvsroot/tiobench
tiobench - http://sourceforge.net/projects/tiobench/files/tiobench/0.3.3/tiobench-0.3.3.tar.gz
tiobench 0.4.1 - wget http://tiobench.cvs.sourceforge.net/viewvc/tiobench/tiobench/?view=tar -O tiobench-tiobench.tar.gz

Changelog:
- Create grandmaster -> master, gh-pages peers for doxygen site.
- Importing Buildconf (autogen.sh), Adding Doxyfile.
- Convert gh-pages and buildconf to submodules.
- Add benchmarks
- Porting Iperf: undefined reference to rpl_malloc
http://lecs.cs.ucla.edu/wiki/index.php/Cross_compile_iperf



26 changes: 26 additions & 0 deletions bonnie/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
## Automake for Bonnie
# @author Rick Foos
# @file

AUTOMAKE_OPTIONS = foreign
AM_CPPFLAGS = -O2 -DNDEBUG -Wall -W -Wshadow -Wpointer-arith -Wwrite-strings -pedantic -ffor-scope

bin_PROGRAMS = bonnie zcav
bin_SCRIPTS = bon_csv2html bon_csv2txt
noinst_SCRIPTS = bonnie-run.sh

bonnie_SOURCES= \
bon_file.cpp bon_time.cpp \
bon_io.cpp forkit.cpp \
bonnie++.cpp semaphore.cpp \
bon_suid.cpp \
bon_file.h bon_time.h forkit.h \
bon_io.h conf.h port.h \
bonnie.h config.h semaphore.h

zcav_SOURCES = \
zcav.cpp bon_suid.cpp bonnie.h conf.h config.h port.h

man_MANS = bon_csv2html.1 bon_csv2txt.1 bonnie.8 bonnie++.8 zcav.8

EXTRA_DIST = $(man_MANS)
57 changes: 57 additions & 0 deletions bonnie/Makefile.in.orig
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
EXES=@exes@

all: $(EXES)

SCRIPTS=bon_csv2html bon_csv2txt

prefix=@prefix@
eprefix=@exec_prefix@
#MORE_WARNINGS=-Weffc++ -Wcast-align
WFLAGS=-Wall -W -Wshadow -Wpointer-arith -Wwrite-strings -pedantic -ffor-scope $(MORE_WARNINGS)
CFLAGS=-O2 @debug@ -DNDEBUG $(WFLAGS) $(MORECFLAGS)
CXX=@CXX@ $(CFLAGS)

INSTALL=@INSTALL@
INSTALL_PROGRAM=@INSTALL_PROGRAM@

BONSRC=bon_io.cpp bon_file.cpp bon_time.cpp semaphore.cpp forkit.cpp \
bon_suid.cpp
BONOBJS=$(BONSRC:.cpp=.o)

MAN1=bon_csv2html.1 bon_csv2txt.1
MAN8=@man8@

ZCAVSRC=bon_suid.cpp
ZCAVOBJS=$(ZCAVSRC:.cpp=.o)

ALLOBJS=$(BONOBJS) $(ZCAVOBJS)

bonnie++: bonnie++.cpp $(BONOBJS)
$(CXX) bonnie++.cpp -o bonnie++ $(BONOBJS) $(LFLAGS)

zcav: zcav.cpp $(ZCAVOBJS)
$(CXX) zcav.cpp -o zcav $(ZCAVOBJS) $(LFLAGS)

install-bin: $(EXES)
mkdir -p $(eprefix)/bin $(eprefix)/sbin
@INSTALL_PROGRAM@ @stripping@ $(EXES) $(eprefix)/sbin
@INSTALL_SCRIPT@ $(SCRIPTS) $(eprefix)/bin

install: install-bin
mkdir -p @mandir@/man1 @mandir@/man8
@INSTALL_DATA@ $(MAN1) @mandir@/man1
@INSTALL_DATA@ $(MAN8) @mandir@/man8

%.o: %.cpp %.h bonnie.h port.h
$(CXX) -c $<

bon_suid.o: bon_suid.cpp bonnie.h port.h
$(CXX) -c $<

clean:
rm -f $(EXES) $(ALLOBJS) build-stamp install-stamp
rm -rf debian/tmp core debian/*.debhelper
rm -f debian/{substvars,files} config.log

realclean: clean
rm -f config.* Makefile bonnie.h port.h bonnie++.spec bon_csv2html bon_csv2txt sun/pkginfo
25 changes: 25 additions & 0 deletions bonnie/bon_csv2html.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
.TH bon_csv2html 1
.SH "NAME"
.BR bon_csv2html
program to convert CSV format Bonnie++ data to a HTML form
using tables suitable for display on a web page. NB Lynx can't display this
properly, and due to the size it probably requires 1024x768 monitor to display
properly.
.P
.BR bon_csv2txt
program to convert CSV format Bonnie++ data to plain\-text format
suitable for pasting into an email or reading on a Braille display.

.SH "DESCRIPTION"
They take CSV format (comma\-delimited spreadsheet files AKA Comma Seperated
Values in MS land) data on standard input and produce HTML or plain text on
standard output respectively.

.SH "AUTHOR"
These programs were written by Russell Coker <russell@coker.com.au>. May be
freely used and distributed without restriction.

.SH "AVAILABILITY"
The source is available from http://www.coker.com.au/bonnie++ .
.P
See http://etbe.coker.com.au/category/benchmark for further information.
101 changes: 101 additions & 0 deletions bonnie/bon_csv2html.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
#!/usr/bin/perl

{
header();
my $line;
while($line = <STDIN>)
{
while($line =~ /^name,/)
{
$line = <STDIN>;
}
process($line);
}
footer();
}

sub header
{
print <<END;
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<HTML>
<HEAD><TITLE>Bonnie++ V@version@ Benchmark results</TITLE>
<STYLE type="text/css">
TD.header {text-align: center; backgroundcolor: "#CCFFFF" }
TD.rowheader {text-align: center; backgroundcolor: "#CCCFFF" }
TD.size {text-align: center; backgroundcolor: "#CCCFFF" }
TD.ksec {text-align: center; fontstyle: italic }
</STYLE>
<BODY>
<TABLE ALIGN=center BORDER=3 CELLPADDING=2 CELLSPACING=1>
<TR><TD COLSPAN=2 class="header"></TD>
<TD COLSPAN=6 class="header"><FONT SIZE=+2><B>Sequential Output</B></FONT></TD>
<TD COLSPAN=4 class="header"><FONT SIZE=+2><B>Sequential Input</B></FONT></TD>
<TD COLSPAN=2 ROWSPAN=2 class="header"><FONT SIZE=+2><B>Random<BR>Seeks</B></FONT></TD>
<TD COLSPAN=1 class="header"></TD>
<TD COLSPAN=6 class="header"><FONT SIZE=+2><B>Sequential Create</B></FONT></TD>
<TD COLSPAN=6 class="header"><FONT SIZE=+2><B>Random Create</B></FONT></TD>
</tr>
END
print "<TR><TD></TD>";
print "<TD>Size:Chunk Size</TD>";
heading("Per Char"); heading("Block"); heading("Rewrite");
heading("Per Char"); heading("Block");
print "<TD>Num Files</TD>";
heading("Create"); heading("Read"); heading("Delete");
heading("Create"); heading("Read"); heading("Delete");
print "</TR>";

print "<TR><TD COLSPAN=2></TD>";
my $i;

for($i = 0; $i < 5; $i++)
{
print '<TD class="ksec"><FONT SIZE=-2>K/sec</FONT></TD>'
. '<TD class="ksec"><FONT SIZE=-2>% CPU</FONT></TD>';
}
print '<TD class="ksec"><FONT SIZE=-2>/ sec</FONT></TD>'
. '<TD class="ksec"><FONT SIZE=-2>% CPU</FONT></TD>';
print "<TD></TD>";
for($i = 0; $i < 6; $i++)
{
print '<TD class="ksec"><FONT SIZE=-2>/ sec</FONT></TD>'
. '<TD class="ksec"><FONT SIZE=-2>% CPU</FONT></TD>';
}
print "</TR>\n";
}

sub heading
{
my($item) = @_;
print "<TD COLSPAN=2>" . $item . "</TD>";
}

sub footer
{
print <<END;
</TABLE>
</BODY>
</HTML>
END
}

sub process
{
my($line) = @_;

chop($line);
my $name = $line;
$name =~ s/,.*$//;
$line =~ s/$name,//;
my $size = $line;
$size =~ s/,.*$//;
$line =~ s/$size,//;
print '<TR><TD class="rowheader"><FONT SIZE=+1><B>'
. $name . "</B></FONT></TD>";
print '<TD class="size">' . $size . "</TD>";


$line =~ s/,/<\/TD><TD>/g;
print "<TD>" . $line . "</TD></TR>\n";
}
1 change: 1 addition & 0 deletions bonnie/bon_csv2txt.1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.so man1/bon_csv2html.1
98 changes: 98 additions & 0 deletions bonnie/bon_csv2txt.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
#!/usr/bin/perl

{
my $line;
$iocount = 0;
$filecount = 0;
while($line = <STDIN>)
{
while($line =~ /^name,/)
{
$line = <STDIN>;
}
process($line);
}
printIOData();

printFileData();
}

sub IOHeader
{
my $version = '@version@';
print "Version $version ------Sequential Output------ --Sequential Input- --Random-\n";
print " -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--\n";
print "Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP\n";
}

sub FileHeader
{
print " ------Sequential Create------ --------Random Create--------\n";
print " -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--\n";
print "files:max:min /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP\n";
}

sub process
{
my($line) = @_;

chop($line);
my $name = $line;
$name =~ s/,.*$//;
$line =~ s/$name,//;

# $ioline contains the file-IO data, IE we strip off the data on file creation
my $ioline = $line;
$ioline =~ s/,[:0-9\-\+.\/]+,[0-9\+.]+,[0-9\+.]+,[0-9\+.]+,[0-9\+.]+,[0-9\+.]+,[0-9\+.]+,[0-9\+.]+,[0-9\+.]+,[0-9\+.]+,[0-9\+.]+,[0-9\+.]+,[0-9\+.]+$//;
$ioline =~ s/,,,,,,,,,,,,,$//;
if(join('', split(/,/,$ioline)) != "")
{
$io[$iocount] = $name . "," . $ioline;
$iocount++;
}
# $fileline contains the file creation data - everything but $ioline
my $fileline = substr($line, length($ioline));
if(join('', split(/,/,$fileline)) != "")
{
$file[$filecount] = $name . $fileline;
$filecount++;
}
}

sub printFileData
{
if($filecount < 1){ return; }
FileHeader();
for($i = 0; $i < $filecount; $i++)
{
@arr = split(/,/,$file[$i]);
my $size = $arr[1];
$size =~ s/:0:0:/\//;
my $desc = $arr[0] . " ";
$desc = substr($desc, 0, 18 - length($size) );
$desc .= " " . $size;
printf(STDOUT "%19s %5s %3s %5s %3s %5s %3s %5s %3s %5s %3s %5s %3s\n"
, $desc, $arr[2], $arr[3], $arr[4], $arr[5], $arr[6], $arr[7]
, $arr[8], $arr[9], $arr[10], $arr[11], $arr[12], $arr[13]
, $arr[14], $arr[15]);
}
}

sub printIOData
{
if($iocount < 1){ return; }
IOHeader();
for($i = 0; $i < $iocount; $i++)
{
@arr = split(/,/,$io[$i]);
my $size = $arr[1];
my $desc = $arr[0] . " ";
$desc = substr($desc, 0, 18 - length($size) );
$desc .= " " . $size;
printf(STDOUT "%19s %5s %3s %5s %3s %5s %3s %5s %3s %5s %3s %5s %3s\n"
, $desc, $arr[2], $arr[3], $arr[4], $arr[5], $arr[6], $arr[7]
, $arr[8], $arr[9], $arr[10], $arr[11], $arr[12], $arr[13]
, $arr[14], $arr[15]);
}
}

Loading

0 comments on commit 3d52692

Please sign in to comment.