File: README.dbusmenu-bench

package info (click to toggle)
libdbusmenu 18.10.20180917~bzr492%2Brepack1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 15,316 kB
  • sloc: ansic: 11,181; makefile: 956; xml: 464; python: 202; sh: 20
file content (27 lines) | stat: -rw-r--r-- 826 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Introduction

dbusmenu-bench measures the time it takes to call various DBusMenu methods and
print the results on stdout. A test dbusmenu application must be started before
running dbusmenu-bench.

A GLib test application is included in this archive. libdbusmenu-qt provides an
equivalent Qt test application. They both can load the same menu hierarchy from
a JSON file.

# Using it

1. Start dbusmenu-testapp:

    dbusmenu-testapp /usr/share/libdbusmenu/json/test-gtk-label.json

2. Run dbusmenu-bench

    dbusmenu-bench --count 1000

1000 is the number of times each DBusMenu method is called. Calling them 1000
times helps getting meaningful average values.

3. Stop dbusmenu-testapp

For debugging purpose, you can also run dbusmenu-bench with the "--dump"
parameter, which will dump the output of the called methods.