Skip to content

Latest commit

 

History

History

benchmark

10 M Insert Test

Hardware

PC: Macbook Apple M1 Pro (2021)
Memory: 32 GB

go-pq-cdc: 
  resources:
    limits:
      cpus: 1
      memory: 512M
    reservations:
      cpus: '0.25'
      memory: 128M

Debezium:
  resources:
    limits:
      cpus: 2
      memory: 1024M
    reservations:
      cpus: '0.25'
      memory: 128M

Result

go-pq-cdc Debezium
Row Count 10 m 10 m
Elapsed Time 2.5 min 21 min
Cpu Usage Max 44% 181%
Memory Usage Max 130 MB 1.07 GB
Received Traffic Max 4.36 MiB/s 7.97 MiB/s
Sent Traffic Max 5.96 MiB/s 6.27 MiB/s

10m_result

Requirements

Instructions

  • Start the containers
    docker compose up -d
  • Connect to Postgres database:
    psql postgres://cdc_user:[email protected]:5432/cdc_db
  • Insert data to users table:
    INSERT INTO users (name)
    SELECT
        'Oyleli' || i
    FROM generate_series(1, 1000000) AS i;
  • Go to grafana dashboard: http://localhost:3000/d/edl1ybvsmc64gb/benchmark?orgId=1

    Grafana Credentials
    Username: go-pq-cdc-user Password: go-pq-cdc-pass

  • Trace the process benchmark_dashboard

Ports