Skip to content

Torment

A ledger for money that moves fast. Name accounts like rider:123:wallet, move money with retry-safe postings, and keep TigerBeetle's speed.

Writes per second against Formance

Hot contention11,998×35,995 vs 3 writes/severy trade hits the same few accounts
Medium contention · typical1,206×47,022 vs 39 writes/strades spread over 16 sets of accounts
Spread contention43×45,074 vs 1,053 writes/s256 sets, users picked at random
TormentFormance v2.4.17Medium contention, applied writes/s
100 postings per request
47,022
16
1 posting per request
6,610
39

One 8-core AWS machine, a simulated brokerage, each system at its best. Closed loop: clients send requests back to back, so this is the most each system can do. We wrote the benchmark, so read the full results and caveats.

Readable accounts

Name accounts after what they are, like rider:123:wallet or platform:fees, and read many at once with patterns like rider:123:*.

Safe to retry

Every posting carries your own id. Send it twice and it is applied once.

All or nothing

Group postings into a chain, and either every one of them happens or none do.

Fast under contention

Balances live in TigerBeetle, so busy accounts don’t make writes queue behind locks.