Zaino 0.11.0-rc1: a new home at Umbriel Systems, and a big step forward

Zaino 0.11.0: release and benchmarks

Zaino 0.11.0 is released, tagged zainod-0.11.0. Release notes, upgrade steps and changelog: Release zainod 0.11.0 · umbriel-sys/zaino · GitHub

What is in 0.11.0

  • NU7 and Zebra 7: built against zebrad 7.1.0, (7.2.0 patch to come shortly).
  • A new store with selectable index sets: lightclient (default), zcash_rpc, full or empty.
  • Serving while it syncs: the validator answers whatever is not built yet.
  • Full transparent history indexing in the full set.
  • Block headers and history proofs for light clients (experimental).

Benchmark summary

Mainnet, on a laptop: AMD Ryzen 7 7840U, 61 GiB RAM, NVMe, with Zebra 7.1.0 and the load generator on the same machine.

  • Build: the default index set builds in 24 m 42 s (35.9 GiB); the full set in 48 m 07 s (58.6 GiB).
  • Recent blocks: 13,000 to 16,000 requests per second, level from 50 to 10,000 concurrent wallets.
  • Transactions: 16,000 to 17,500 per second at every wallet count.
  • Chain head: 79,000 to 112,000 requests per second (most recent 1001 blocks).
  • Errors: 0 in 16.1 million measured requests.

Build

From an empty store to the chain tip (3.63 million blocks), measured with zaino-bench.

Index set Validator mode Build time Disk Peak memory
lightclient (default) zebra 24 m 42 s 35.9 GiB 8.1 GiB
lightclient + history_tree zebra 24 m 50 s 37.1 GiB 8.2 GiB
lightclient + address_history zebra 32 m 46 s 49.6 GiB 15.2 GiB
full zebra 48 m 07 s 58.6 GiB 17.9 GiB
lightclient zcash_rpc 1 h 22 m 35.9 GiB 6.6 GiB

Serving

Measured with cbb on the lightclient store, over unencrypted gRPC on localhost. Each wallet requests 100-block ranges back to back; “default” adds a GetTreeState every fifth request. Warm pass, requests per second.

Wallets Recent blocks, default Recent blocks, ranges only Height 2,000,000, default Transactions Chain head, default
50 15,867 11,000 3,901 16,599 106,776
200 14,182 10,463 3,809 17,138 111,853
1,000 13,407 10,099 5,417 16,004 100,056
5,000 13,325 11,198 2,712 16,118 87,094
10,000 13,248 11,417 2,553 16,101 78,828
  • Recent blocks start at height 3,524,000: what wallets sync today.
  • Height 2,000,000 is cbb’s standard start, in the spam period, where blocks are about 30 times larger. At 10,000 wallets a 1,024 MiB block cache raises this from 2,553 to 3,671.
  • Chain head is the most recent 1,001 blocks, held in memory: what an already-synced wallet asks for.
  • Median request time, recent blocks: 2 ms at 50 wallets, 64 ms at 1,000, 0.72 s at 10,000.
  • In zcash_rpc mode transactions run at 6,400 to 7,600 per second; block ranges are served from Zaino’s own store in either mode.

Compared with other indexers

Warm pass, requests per second, from height 2,000,000. The other figures are the reference results published with cbb, measured on an Intel Core Ultra 9 185H; Zaino’s were measured on a lower-power laptop CPU, so the comparison is not like-for-like.

Indexer Default, 50 wallets Default, 200 Ranges only, 50 Ranges only, 200
Zaino 0.11.0 3,901 3,809 3,066 3,171
zingod 1.0.0 3,836 3,350 2,570 2,723
ztreamerd – – 3,481 3,676
zinder 0.16.1 1,100 788 – –
lightwalletd 0.6.1 606 493 649 502
Zaino 0.10.1 442 456 973 780
zebrad (native gRPC) 19 19 – –

Against Zaino 0.10.1 this is 8 to 9 times the throughput on the default workload.

Notes

  • Figures exclude TLS and network latency.
  • The chain-head runs use cbb’s --wallet-offset 0, proposed upstream in cbb #11.
  • Crates and DoockerHub releases to follow.

Feedback and independent runs are welcome.

2 Likes