Skip to content

polkadot-api/memory-brenchmark

Repository files navigation

PAPI/Dedot Memory benchmark

This uses the benchmark created by Dedot team, ported to PAPI to compare the memory performance of both libraries.

Preparing

You need pnpm and bun installed in your system.

pnpm i

Running

Dedot:

pnpm bench-dedot

PAPI:

pnpm bench-papi

Results

Results ran in a MacBook M3 Pro, Bun 1.2.7

Dedot:

================================================================================
📊 FINAL MEMORY CONSUMPTION REPORT
================================================================================
Total blocks processed: 200
Total time: 610.6s
Average time per block: 3.05s

Memory Statistics:
  Initial heap used: 4.96 MB
  Final heap used: 237.15 MB
  Total memory growth: 232.19 MB
  Average memory per block: 1.16 MB
  Peak RSS: 386.09 MB
  Peak heap used: 241.09 MB

⚠️  WARNING: High memory growth detected!
  Average growth of 1.16 MB per block may indicate a memory leak.

PAPI:

================================================================================
📊 FINAL MEMORY CONSUMPTION REPORT
================================================================================
Total blocks processed: 200
Total time: 164.4s
Average time per block: 0.82s

Memory Statistics:
  Initial heap used: 2.30 MB
  Final heap used: 19.84 MB
  Total memory growth: 17.54 MB
  Average memory per block: 0.09 MB
  Peak RSS: 175.91 MB
  Peak heap used: 42.49 MB

✅ Memory growth appears normal.

About

PAPI/Dedot Memory benchmark

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published