Skip to content

Instantly share code, notes, and snippets.

package main
import (
"bytes"
"fmt"
"regexp"
"strconv"
"strings"
"testing"
From 9c3af2c44583e83444bfd19a45e0beaba4f2e8e6 Mon Sep 17 00:00:00 2001
From: Florian Lehner <dev@der-flo.net>
Date: Wed, 28 Jan 2026 20:05:10 +0100
Subject: [PATCH] kallsyms: TBD
TBD
Signed-off-by: Florian Lehner <dev@der-flo.net>
---
include/linux/filter.h | 8 ++++++++
package main
import (
"math/rand"
"slices"
"sort"
"testing"
"time"
)
$ git s
6dbd97595a390243ec3d79e827527c740ee74c87
## main...origin/main
$ time sudo ./mm-impact /opt/Elastic/Agent/data/elastic-agent-9.2.0-e7bf31/components/agentbeat
Initial numbers
--- Go Runtime Memory Stats (Managed by GC) ---
Total Allocated: 329.11 KB
Heap In Use: 880.00 KB
System Memory (Sys): 6.65 MB
From 9c4bc84cc73f612182bd831c23fbd375c9db36a8 Mon Sep 17 00:00:00 2001
From: Florian Lehner <florian.lehner@elastic.co>
Date: Tue, 7 Oct 2025 09:28:45 +0200
Subject: [PATCH] createNewRequest
Signed-off-by: Florian Lehner <florian.lehner@elastic.co>
---
config/confighttp/compression.go | 26 +++++++++++++++-----------
1 file changed, 15 insertions(+), 11 deletions(-)
package main
import (
"log"
"os/exec"
"syscall"
)
func main() {
path, err := exec.LookPath("python3.13")
From 39729efd92ad61b13d6b4db1b49f1eb521e5b7ed Mon Sep 17 00:00:00 2001
From: Florian Lehner <florian.lehner@elastic.co>
Date: Fri, 26 Sep 2025 11:47:49 +0200
Subject: [PATCH] benchmark-confighttp-syncPool
Signed-off-by: Florian Lehner <florian.lehner@elastic.co>
---
config/confighttp/compression_test.go | 181 ++++++++++++++++++++++++++
1 file changed, 181 insertions(+)
python3 -c "
import struct
import sys
def parse_partition_table(filename):
with open(filename, 'rb') as f:
data = f.read()
partitions = []
offset = 0
@florianl
florianl / flamegraph.svg
Created July 21, 2025 15:43
flamegraph.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
From 461be79cb4e3275b54727fff506799c063ae13ed Mon Sep 17 00:00:00 2001
From: Florian Lehner <dev@der-flo.net>
Date: Wed, 11 Jun 2025 21:29:53 +0200
Subject: [PATCH] Support new flight recorder format
Signed-off-by: Florian Lehner <dev@der-flo.net>
---
cmd/gotraceui/goroutine.go | 4 ++--
cmd/gotraceui/span.go | 5 ++---
go.mod | 4 ++--