[Git][reproducible-builds/disorderfs][master] Add a quick benchmark. (Re. reproducible-builds/disorderfs#6)

Chris Lamb gitlab at salsa.debian.org
Fri Dec 18 16:55:21 UTC 2020



Chris Lamb pushed to branch master at Reproducible Builds / disorderfs


Commits:
a4503fe2 by Chris Lamb at 2020-12-18T16:54:44+00:00
Add a quick benchmark. (Re. reproducible-builds/disorderfs#6)

- - - - -


1 changed file:

- + tests/test_benchmark


Changes:

=====================================
tests/test_benchmark
=====================================
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+. ./common
+
+LOOPS=3000
+
+Start () {
+	START="$(date +%s.%N)"
+}
+
+Stop () {
+	SUFFIX="${1}"
+	DURATION="$(echo "$(date +%s.%N) - ${START}" | bc)"
+	printf "Took %.3fs %s\n" "${DURATION}" "${SUFFIX}"
+}
+
+Start
+for X in $(seq "${LOOPS}")
+do
+	find fixtures -ls >/dev/null
+done
+Stop "without disorderfs"
+
+Mount
+Start
+for X in $(seq "${LOOPS}")
+do
+	find target -ls >/dev/null
+done
+Stop "with disorderfs"
+Unmount



View it on GitLab: https://salsa.debian.org/reproducible-builds/disorderfs/-/commit/a4503fe26fc94d16cfa8bfd4793a75be16e17b0f

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/disorderfs/-/commit/a4503fe26fc94d16cfa8bfd4793a75be16e17b0f
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20201218/6664ac58/attachment.htm>


More information about the rb-commits mailing list