# Gramps Performance Testing

**URL:** <https://gramps.discourse.group/t/gramps-performance-testing/8144>\
**Category:** Development\
**Tags:** performance\
**Created:** [August 13, 2025, 7:28pm UTC](https://gramps.discourse.group/t/gramps-performance-testing/8144 "2025-08-13T19:28:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dsblank](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/dsblank/32/3649_2.png) [@dsblank](https://gramps.discourse.group/u/dsblank)\
**Post date:** [August 14, 2025, 12:50pm UTC](https://gramps.discourse.group/t/gramps-performance-testing/8144/2 "2025-08-14T12:50:09Z")

</div>

Introducing `gramps-bench` : [gramps-bench · PyPI](https://pypi.org/project/gramps-bench/) with the source code here: [GitHub - dsblank/gramps-bench: Scripts to measure and record Gramps genealogy program benchmarks](https://github.com/dsblank/gramps-bench) This project is designed especially for developers that want to test how different backend version and settings effect performance of the Gramps’ backends.

Developers: checkout the tests in [gramps-bench/gramps\_bench/performance\_tests.py at main · dsblank/gramps-bench · GitHub](https://github.com/dsblank/gramps-bench/blob/main/gramps_bench/performance_tests.py)

We’ll also have to decide on what gramps family tree to use for standard benchmarks (or create one randomly).

The idea is:

1. Run `gramps-bench` to get a baseline
2. Make some changes to the installed gramps code (let’s call this `6.0.4-t1` for test 1)
3. Record the benchmark
4. Display the results

Basically, this works like:

```python
pip install gramps-bench --upgrade

gramps-bench path/to/a/family-tree-file
# make your changes to code
gramps-bench path/to/a/family-tree-file --version 6.0.4-t1

```

This will create in the current directory a folder called .benchmarks (this is a standard format using pytest-benchmark). To see the results:

```python
gramps-bench

```

and look for a PDF in the folder. There are more details in the README.md. Let me know if issues… this is the initial version.

Next up for me: add the standard benchmark results to the repo for easy comparisons for users to see and compare.

---

_[View the full topic](https://gramps.discourse.group/t/gramps-performance-testing/8144)._
