Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mathis Rosenhauer
libaec
Commits
aaf7f627
Commit
aaf7f627
authored
Feb 18, 2014
by
Mathis Rosenhauer
Browse files
benchmarking for encoding and decoding
parent
3668f972
Changes
4
Hide whitespace changes
Inline
Side-by-side
Makefile.am
View file @
aaf7f627
ACLOCAL_AMFLAGS
=
-I
m4
SUBDIRS
=
src tests
EXTRA_DIST
=
doc/license.txt doc/logo.svg
\ No newline at end of file
EXTRA_DIST
=
doc/license.txt doc/logo.svg
bench
:
all
cd
tests
&&
$(MAKE)
$(AM_MAKEFLAGS)
bench
benc
:
all
cd
tests
&&
$(MAKE)
$(AM_MAKEFLAGS)
benc
bdec
:
all
cd
tests
&&
$(MAKE)
$(AM_MAKEFLAGS)
bdec
.PHONY
:
bench benc bdec
tests/Makefile.am
View file @
aaf7f627
...
...
@@ -14,4 +14,10 @@ check_long_fs_SOURCES = check_long_fs.c check_aec.h \
$(top_builddir)
/src/libaec.h
LDADD
=
libcheck_aec.la
$(top_builddir)
/src/libaec.la
EXTRA_DIST
=
sampledata.sh
EXTRA_DIST
=
sampledata.sh benc.sh bdec.sh
bench
:
benc bdec
benc
:
./benc.sh
bdec
:
./bdec.sh
.PHONY
:
bench benc bdec
tests/bdec.sh
0 → 100755
View file @
aaf7f627
#!/bin/sh
AEC
=
../src/aec
if
[
!
-f
bench.rz
]
;
then
echo
"No encoded file found. Encoding now..."
./benc.sh
fi
rm
-f
dec.dat
bsize
=
$(
stat
-c
"%s"
bench.dat
)
utime
=
$(
(
/usr/bin/time
-f
"%U"
$AEC
-d
-n16
-j64
-r256
-m
-c
\
bench.rz
>
dec.dat
)
2>&1
)
perf
=
$(
echo
"
$bsize
/1048576/
$utime
"
| bc
)
echo
"[0;32m*** Decoding with
$perf
MiB/s user time ***[0m"
cmp bench.dat dec.dat
tests/benc.sh
0 → 100755
View file @
aaf7f627
#!/bin/sh
AEC
=
../src/aec
if
[
!
-f
typical.dat
]
;
then
wget https://www.dkrz.de/redmine/attachments/download/441/typical.dat
fi
if
[
!
-f
bench.dat
]
;
then
for
i
in
$(
seq
0 499
)
;
do
cat
typical.dat
>>
bench.dat
done
fi
rm
-f
bench.rz
utime
=
$(
(
/usr/bin/time
-f
"%U"
$AEC
-n16
-j64
-r256
-m
-c
bench.dat
>
bench.rz
)
2>&1
)
bsize
=
$(
stat
-c
"%s"
bench.dat
)
perf
=
$(
echo
"
$bsize
/1048576/
$utime
"
| bc
)
echo
"[0;32m*** Encoding with
$perf
MiB/s user time ***[0m"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment