Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions bench
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
# Use is subject to license terms.
#

bench_version=0.4.0
bench_version=0.4.1
libmicro_version=`bin/tattle -V`

case $libmicro_version in
Expand Down Expand Up @@ -65,7 +65,14 @@ mkdir -p $VDIR1 $VDIR2

touch $IFILE

ARCH=`arch -k`
DISTRO=$(cat /etc/issue 2> /dev/null | head -n +1 | awk '{print $1}')

if [ "$DISTRO" = "Debian" -o "$DISTRO" = "Ubuntu" ]
then
ARCH=`arch`
else
ARCH=`arch -k`
fi

# produce benchmark header for easier comparisons

Expand Down
9 changes: 8 additions & 1 deletion bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,14 @@ mkdir -p $VDIR1 $VDIR2

touch $IFILE

ARCH=`arch -k`
DISTRO=$(cat /etc/issue 2> /dev/null | head -n +1 | awk '{print $1}')

if [ "$DISTRO" = "Debian" -o "$DISTRO" = "Ubuntu" ]
then
ARCH=`arch`
else
ARCH=`arch -k`
fi

# produce benchmark header for easier comparisons

Expand Down
1 change: 1 addition & 0 deletions cascade_flock.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
#include <sys/file.h>

#include "libmicro.h"

Expand Down
2 changes: 1 addition & 1 deletion mmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
#include <strings.h>
#include <string.h>

#include "libmicro.h"

Expand Down
2 changes: 1 addition & 1 deletion mprotect.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include <stdio.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <strings.h>
#include <string.h>

#include "libmicro.h"

Expand Down
2 changes: 1 addition & 1 deletion munmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include <stdio.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <strings.h>
#include <string.h>

#include "libmicro.h"

Expand Down