summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2018-01-24 13:21:47 +0100
committerRemi Collet <remi@remirepo.net>2018-01-24 13:21:47 +0100
commit88e8bef6b42bbd1a831e5c8a37e0567251df83bb (patch)
tree04918715f782ef0312e92d21a99dd2096dec5969 /README.md
initial work, only PoC for now
Diffstat (limited to 'README.md')
-rw-r--r--README.md36
1 files changed, 36 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..e3c75aa
--- /dev/null
+++ b/README.md
@@ -0,0 +1,36 @@
+rpminfo
+=======
+
+Experimental wrapper for librpm
+
+For now, only expose
+
+ int rpmvercmp(string evr1, string evr2);
+
+
+Mostly a PoC build for fun because of
+
+https://bugzilla.redhat.com/1537981
+performance issue: dnf repomanage is really slow
+
+
+Some benchmark results (find 15 old RPMs among 5000)
+
+# DNF on Fedora
+
+ $ time dnf repomanage --old --keep 5 .
+ ...
+ real 0m15,971s
+
+# YUM on RHEL / CentOS
+
+ $ time repomanage --old --keep 5 .
+ ...
+ real 0m5.519s
+
+# PHP script
+
+ $ time php repomanage.php --old --keep 5 .
+ ...
+ real 0m0,634s
+