From ebd4b50a28a8c32d981052d9f8283d24ab97d886 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Sun, 27 Feb 2022 16:19:18 +0100 Subject: utils: Add benchmark utility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This executable is only built in-tree and not installed, mostly useful so developers can check performance improvements and regressions. For reference and future baseline, the output is: ``` $ ./utils/benchmark/tracker-benchmark Batch size: 5000, Individual test duration: 30 sec Opening in-memory database… Test Elements Elems/sec Min Max Avg Resource batch update (sync) 1016148,459 33871,615 27,302 usec 40,300 usec 29,523 usec SPARQL batch update (sync) 365763,206 12192,107 76,743 usec 93,013 usec 82,020 usec Prepared statement query (sync) 1931876,356 64395,879 13,000 usec 5,158 msec 15,529 usec SPARQL query (sync) 220222,325 7340,744 123,000 usec 1,350 msec 136,226 usec ``` This is on an Intel Core i5-6200U CPU. --- utils/meson.build | 1 + 1 file changed, 1 insertion(+) (limited to 'utils/meson.build') diff --git a/utils/meson.build b/utils/meson.build index d571a582b..a13458910 100644 --- a/utils/meson.build +++ b/utils/meson.build @@ -1,3 +1,4 @@ +subdir('benchmark') subdir('mtp') subdir('tracker-resdump') subdir('trackertestutils') -- cgit v1.2.1