WIP benchmark

This commit is contained in:
Quentin 2020-01-31 10:50:53 +01:00
parent ad6db36000
commit 697868cc18
3 changed files with 42 additions and 1 deletions

View file

@ -65,7 +65,7 @@ RUN dnf install -y \
WORKDIR /home/donar WORKDIR /home/donar
RUN mkdir /home/donar/shared && mkdir /home/donar/res && chown -R 1000 /home/donar RUN mkdir /home/donar/shared && mkdir /home/donar/res && chown -R 1000 /home/donar
USER 0 USER 1000
ENV HOME /home/donar ENV HOME /home/donar
COPY --from=builder /home/donar-build/out/donar /usr/local/bin COPY --from=builder /home/donar-build/out/donar /usr/local/bin
COPY --from=builder /home/donar-build/out/measlat /usr/local/bin COPY --from=builder /home/donar-build/out/measlat /usr/local/bin
@ -76,3 +76,4 @@ COPY --from=builder /home/donar-build/tor2/src/app/tor /usr/local/bin/tor2
COPY --from=builder /home/donar-build/tor3/src/app/tor /usr/local/bin/tor3 COPY --from=builder /home/donar-build/tor3/src/app/tor /usr/local/bin/tor3
COPY ./scripts/container/* /usr/local/bin/ COPY ./scripts/container/* /usr/local/bin/
COPY ./torrc_* /etc/ COPY ./torrc_* /etc/
COPY ./assets /assets

View file

@ -0,0 +1,20 @@
#!/bin/bash
mkdir -p $4/{log,shared,res}
donar \
-a lightning \
-c \
-o $4/shared/onion_services.pub \
-l $1 \
-p $2 \
-e 5000 \
-r 5000 \
> $4/log/client-donar-stdout.log 2> $4/log/client-donar-stderr.log &
dcall \
-t filesrc \
-a /assets/i_have_a_dream.mp3 \
-s fakesink \
-l $3 \
-d $4/log/server-dcall-gstreamer.log \
> $4/log/client-dcall-stdout.log 2> $4/log/client-dcall-stderr.log

View file

@ -0,0 +1,20 @@
#!/bin/bash
mkdir -p $4/{log,shared}
cd $4/shared
donar \
-a lightning \
-s \
-l $1 \
-p $2 \
-e 5000 \
-r 5000 \
> ../log/server-donar-stdout.log 2> ../log/server-donar-stderr.log &
dcall \
-t filesrc \
-a /assets/i_have_a_dream.mp3 \
-s fakesink \
-l $3 \
-d ../log/server-dcall-gstreamer.log \
> ../log/server-dcall-stdout.log 2> ../log/server-dcall-stderr.log