# Performance benchmark

**URL:** <https://forums.foundationdb.org/t/performance-benchmark/2884>\
**Category:** Using FoundationDB\
**Created:** [September 10, 2021, 7:22am UTC](https://forums.foundationdb.org/t/performance-benchmark/2884 "2021-09-10T07:22:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![laita](https://avatars.discourse-cdn.com/v4/letter/l/77aa72/32.png) [@laita](https://forums.foundationdb.org/u/laita)\
**Post date:** [September 10, 2021, 7:22am UTC](https://forums.foundationdb.org/t/performance-benchmark/2884/1 "2021-09-10T07:22:06Z")

</div>

Hello,  
I would like to reproduce some of fdb performance /latency measurements on small cluster.  
Currently I tested with 3 machines.  
I used adapted python script python\_performance.py from fdb github for throughput and wrote new one for latencies.

I would know if there are some resources or methods to run parallel clients to target the performances reported here : [Performance — FoundationDB 6.3](https://apple.github.io/foundationdb/performance.html)

On my side I obtain in some test latencies about 3ms for wrting entries like this is subspace:

```auto
def create(self, tr, ...):
        tr[cts_space.pack((account_id, cname))] = b''
        tr[ct_space.pack((cname, pack(('name', cname))))] = b''
        tr[ct_space.pack((cname, pack(('objects', 0))))] = b''
        tr[ct_space.pack((cname, pack(('bytes', 0))))] = b''
        tr[ct_space.pack((cname, pack(('mtime', time.time()))))] = b''
        tr[ct_space.pack((cname, pack(('dtime', 0))))] = b''

```

Any guide or advice to run bench in parallel, how to configure fdbserver process per core etc ?  
Thank you

---

<div class="post-metadata">

**Author:** ![laita](https://avatars.discourse-cdn.com/v4/letter/l/77aa72/32.png) [@laita](https://forums.foundationdb.org/u/laita)\
**Post date:** [September 14, 2021, 7:08pm UTC](https://forums.foundationdb.org/t/performance-benchmark/2884/2 "2021-09-14T19:08:14Z")

</div>

I found go-ycsb tool to use with workload configuration

---

<div class="post-metadata">

**Author:** ![alexmiller](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/alexmiller/32/326_2.png) [@alexmiller](https://forums.foundationdb.org/u/alexmiller)\
**Post date:** [September 14, 2021, 7:37pm UTC](https://forums.foundationdb.org/t/performance-benchmark/2884/3 "2021-09-14T19:37:19Z")

</div>

There’s some discussion about go-ycsb and its current limitations in [Benchmarking FoundationDB on AWS](https://forums.foundationdb.org/t/benchmarking-foundationdb-on-aws/410)

Multiple network connection support in 6.3 should make it rather easy to fix go-ycsb to be more realistic now though 🤔

---

<div class="post-metadata">

**Author:** ![laita](https://avatars.discourse-cdn.com/v4/letter/l/77aa72/32.png) [@laita](https://forums.foundationdb.org/u/laita)\
**Post date:** [September 30, 2021, 3:51pm UTC](https://forums.foundationdb.org/t/performance-benchmark/2884/4 "2021-09-30T15:51:52Z")

</div>

interesting! I got the tool and tested on one machine. Could you explain changes to do , I will be interested to implement them to test with a cluster.

---

<div class="post-metadata">

**Author:** ![alexmiller](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/alexmiller/32/326_2.png) [@alexmiller](https://forums.foundationdb.org/u/alexmiller)\
**Post date:** [October 5, 2021, 6:16pm UTC](https://forums.foundationdb.org/t/performance-benchmark/2884/5 "2021-10-05T18:16:48Z")

</div>

If you’re using a client at \>= 6.3.0, then you’d need to:

- Set the `CLIENT_THREADS_PER_VERSION ` network option to create some number of threads as described in [Using FoundationDB Clients — FoundationDB 6.3](https://apple.github.io/foundationdb/api-general.html#multi-threaded-client)
- Create the same number of `FDBDatabase` objects, and round-robin requests across them in go-ycsb.
