Skip to content

Instantly share code, notes, and snippets.

View mauriciopoppe's full-sized avatar
🇧🇴

Mauricio Poppe mauriciopoppe

🇧🇴
View GitHub Profile
@mauriciopoppe
mauriciopoppe / README.md
Last active October 8, 2026 18:07
Integration Memory Benchmark of kube-apiserver

In-Process kube-apiserver Memory Integration Benchmark (TestAPIServerMemoryIntegration)

Purpose and Motivation

Profiling kube-apiserver memory consumption and allocation churn in isolation is challenging: microbenchmarks only exercise a single function at a time, while full cluster e2e tests introduce external network jitter, node-agent background noise, and non-deterministic garbage collection timing.

TestAPIServerMemoryIntegration (cmd/kube-apiserver/app/testing/apiserver_mem_bench_test.go) is a self-contained, deterministic in-process kube-apiserver + embedded etcd3 integration benchmark designed to measure both steady-state retained heap memory (pprof inuse_space, HeapInuse, HeapObjects, process RSS) and cumulative request allocation churn (pprof alloc_space, TotalAlloc, Mallocs, NumGC) with zero external dependencies.

![In-Process Benchmark Architecture and Request Flow](https://gist.githubusercontent.com/mauriciopoppe/508635e973bb8795cab2241c9a520edc/raw/kcp_

@mauriciopoppe
mauriciopoppe / _README.md
Last active April 19, 2024 03:40
Create backing tracks for your open mic or karaoke night
@mauriciopoppe
mauriciopoppe / esnextbin.md
Created June 16, 2017 23:43
esnextbin sketch
@mauriciopoppe
mauriciopoppe / IJT0-1.clj
Created May 21, 2017 06:50
null created by mauriciopoppe - https://repl.it/IJT0/1
; addition
(+ 6 8)
; 0
(+)
@mauriciopoppe
mauriciopoppe / esnextbin.md
Last active May 24, 2016 18:35
esnextbin sketch
@mauriciopoppe
mauriciopoppe / index.js
Created May 24, 2016 17:38
requirebin sketch
var adapter = require('floating-adapter');
var Decimal = require('pow-arbitrary-precision')(require('linear-arbitrary-precision')(adapter));
console.log(new Decimal('-8').pow(new Decimal('1/3')).valueOf())
@mauriciopoppe
mauriciopoppe / esnextbin.md
Created May 7, 2016 07:04
esnextbin sketch
@mauriciopoppe
mauriciopoppe / esnextbin.md
Created May 4, 2016 20:08
esnextbin sketch
@mauriciopoppe
mauriciopoppe / esnextbin.md
Created May 3, 2016 23:56
esnextbin sketch
@mauriciopoppe
mauriciopoppe / esnextbin.md
Created May 3, 2016 23:53
esnextbin sketch