From 911f1fe752173fdfee3f135acd2509c908c7fce2 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Thu, 21 Aug 2025 22:36:06 +0200 Subject: chore: Better benchmark & profiling setup --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 7983a49..6c8eda3 100644 --- a/README.md +++ b/README.md @@ -4,15 +4,19 @@ - Vec_get not safe, I made a type mistake. And should be more efficient for loops - Fix tests in release -- Benchmark 100MB file - - json.loads: 526 ms ± 77 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) - - self: 348 ms (mean of 7 runs, 1 loop each). 2079 MB/s - Static functions for private? - `valgrind --leak-check=full ./your_program` - assert with error msg? - negative numbers - web server, Json parsing, struct codegen +## Benchmarks + +| version | result | +|---|---| +|json.loads|652 ms ± 6.65 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)| +|v1|336 ms ± 163 ms per loop (mean ± std. dev. of 10 runs, 1 loop each)| + ## Resources - https://nullprogram.com/blog/2023/10/08/ -- cgit v1.3