Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
libaec
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mathis Rosenhauer
libaec
Commits
aaf7f627
Commit
aaf7f627
authored
11 years ago
by
Mathis Rosenhauer
Browse files
Options
Downloads
Patches
Plain Diff
benchmarking for encoding and decoding
parent
3668f972
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Makefile.am
+8
-1
8 additions, 1 deletion
Makefile.am
tests/Makefile.am
+7
-1
7 additions, 1 deletion
tests/Makefile.am
tests/bdec.sh
+19
-0
19 additions, 0 deletions
tests/bdec.sh
tests/benc.sh
+22
-0
22 additions, 0 deletions
tests/benc.sh
with
56 additions
and
2 deletions
Makefile.am
+
8
−
1
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
This diff is collapsed.
Click to expand it.
tests/Makefile.am
+
7
−
1
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
This diff is collapsed.
Click to expand it.
tests/bdec.sh
0 → 100755
+
19
−
0
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
This diff is collapsed.
Click to expand it.
tests/benc.sh
0 → 100755
+
22
−
0
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"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment