Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
libaec
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Mathis Rosenhauer
libaec
Commits
aaf7f627
Commit
aaf7f627
authored
Feb 18, 2014
by
Mathis Rosenhauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
benchmarking for encoding and decoding
parent
3668f972
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
56 additions
and
2 deletions
+56
-2
Makefile.am
Makefile.am
+8
-1
tests/Makefile.am
tests/Makefile.am
+7
-1
tests/bdec.sh
tests/bdec.sh
+19
-0
tests/benc.sh
tests/benc.sh
+22
-0
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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