From 47250615235ac11f956fd06b3d938bba91f48b37 Mon Sep 17 00:00:00 2001 From: Vincent Riquer Date: Mon, 20 Jan 2025 20:21:39 +0100 Subject: [PATCH] Performance --- doc/performances.txt | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 doc/performances.txt diff --git a/doc/performances.txt b/doc/performances.txt new file mode 100644 index 0000000..45ca95d --- /dev/null +++ b/doc/performances.txt @@ -0,0 +1,29 @@ +# TEST DATA + +155GB, 14430 files in 2716 directories and subdirectories: +$ du -sh /var/lib/mpd/music +155G /var/lib/mpd/music +$ find /var/lib/mpd/music -type d|wc -l +2716 +$ find /var/lib/mpd/music -type f|wc -l +14430 + +# SCANNING + +Initial scan takes 5 minutes, probably because of mime-type detection: +$ time ./atom +[...] +14430 files found, 14430 new or changed. + +real 5m4.144s +user 0m19.821s +sys 0m17.393s + +A second scan takes less than 14 seconds: +$ time ./atom +[...] +14430 files found, 0 new or changed. + +real 0m13.770s +user 0m11.169s +sys 0m1.844s