Upcoming storage node improvements including benchmark tool

I used this Dockerfile to build them for my nodes:

FROM golang as build
RUN git clone https://github.com/storj/storj.git && \
    cd storj && \
    go install ./cmd/tools/piecestore-benchmark && \
    go install ./cmd/tools/filewalker-benchmark

FROM ubuntu
WORKDIR /benchmark
COPY --from=build go/bin/piecestore-benchmark /usr/bin/
COPY --from=build go/bin/filewalker-benchmark /usr/bin/

Then build it:

docker build . -t storj-benchmarks

Now you may test it:

docker run -it --rm -v x:\benchmark\:/benchmark storj-benchmarks piecestore-benchmark
docker run -it --rm -v x:\benchmark\:/benchmark storj-benchmarks filewalker-benchmark

Additional options you may see with -h argument

example:

docker run -it --rm -v x:\benchmark\:/benchmark storj-benchmarks piecestore-benchmark
uploaded 10000 62.07 KB pieces in 6m1.0884103s (1.64 MiB/s, 27.69 pieces/s)
downloaded 10000 62.07 KB pieces in 16.2602328s (36.40 MiB/s, 615.00 pieces/s)
collected 10000 pieces in 1m38.1718544s (6.03 MiB/s)
1 Like