Skip to content

Instantly share code, notes, and snippets.

View zamazan4ik's full-sized avatar
🐰
Let's dig into loosely-coupled event-driven systems

Alexander Zaitsev zamazan4ik

🐰
Let's dig into loosely-coupled event-driven systems
View GitHub Profile
@zamazan4ik
zamazan4ik / gist:538ee072b853d81c50f6a7b6c427a70d
Created July 1, 2025 20:32
flecs benchmark (GCC): Release
| Benchmark | Measurement |
|---------------------------------------|--------------|
| baseline | 1.41ns |
| has_not_found | 1.71ns |
| has | 1.91ns |
| owns_not_found | 1.70ns |
| owns | 1.91ns |
| get_id_not_found | 1.92ns |
| get | 2.49ns |
| get_pair | 5.96ns |
@zamazan4ik
zamazan4ik / gist:006be86c3e6d4b0ae5f0678a2ab00531
Created July 1, 2025 19:47
flecs benchmark: PGO-optimized
| Benchmark | Measurement |
|---------------------------------------|--------------|
| baseline | 0.76ns |
| has_not_found | 0.74ns |
| has | 0.75ns |
| owns_not_found | 0.64ns |
| owns | 0.64ns |
| get_id_not_found | 0.64ns |
| get | 0.64ns |
| get_pair | 2.44ns |
| Benchmark | Measurement |
|---------------------------------------|--------------|
| baseline | 0.78ns |
| has_not_found | 0.85ns |
| has | 0.86ns |
| owns_not_found | 0.64ns |
| owns | 0.65ns |
| get_id_not_found | 0.65ns |
| get | 0.65ns |
| get_pair | 2.78ns |
@zamazan4ik
zamazan4ik / gist:6817f27c6373c59854aab4fc5dcc087e
Created July 1, 2025 19:36
flecs benchmark: instrumented
| Benchmark | Measurement |
|---------------------------------------|--------------|
| baseline | 2.01ns |
| has_not_found | 1.09ns |
| has | 1.49ns |
| owns_not_found | 1.07ns |
| owns | 1.29ns |
| get_id_not_found | 1.19ns |
| get | 1.50ns |
| get_pair | 4.95ns |
srghma
created an issue
(zamazan4ik/lto-statistics#1)
This issue was created automatically bc search showed that You use https://github.com/erthink/libmdbx.
Describe the issue
On https://gitflic.ru/user/erthink @erthink collects money for 🇷🇺 occupants to kill 🇺🇦 children and occupy my home (I am from Donetsk, Rodynskoye, my city is on the line, they already destroyed city and hunt ordinary people with drones. Also, russians tortured my friend Ivan for flag of 🇺🇦 Ukraine in 📱 mobile phone)
ects: 2969, done.
remote: Counting objects: 100% (509/509), done.
remote: Compressing objects: 100% (96/96), done.
remote: Total 2969 (delta 465), reused 419 (delta 413), pack-reused 2460 (from 1)
Получение объектов: 100% (2969/2969), 4.67 МиБ | 17.12 МиБ/с, готово.
Определение изменений: 100% (2055/2055), готово.
➜ open_source cd manga-tui
➜ manga-tui git:(main) cargo build --release
info: syncing channel updates for 'nightly-2024-06-25-x86_64-unknown-linux-gnu'
info: latest update on 2024-06-25, rust version 1.81.0-nightly (6b0f4b5ec 2024-06-24)
zamazan4ik — Сегодня, в 19:43
Can please anyone point me where in CachyOS's build scripts LTO is enabled by default for packages?
ptr1337 — Сегодня, в 19:44
Thats default enabled in archlinux in its makepkg.conf:
https://github.com/CachyOS/docker-makepkg/blob/master/docker-makepkg-v3/makepkg.conf#L97
lto string here
zamazan4ik — Сегодня, в 19:45
Is it the same for Rust packages?
@zamazan4ik
zamazan4ik / gist:6c3286fef32b8f6f2bf31c1fd93d31a4
Created November 14, 2024 01:34
osmgraph: PGO optimized compared to Release
Running benches/graph.rs (x86_64-unknown-linux-gnu/release/deps/graph-106907e9f648f29b)
Benchmarking node_parse
Benchmarking node_parse: Warming up for 3.0000 s
Benchmarking node_parse: Collecting 100 samples in estimated 5.0786 s (258k iterations)
Benchmarking node_parse: Analyzing
node_parse time: [20.479 µs 20.630 µs 20.761 µs]
change: [-33.074% -32.663% -32.280%] (p = 0.00 < 0.05)
Performance has improved.
Found 23 outliers among 100 measurements (23.00%)
14 (14.00%) low severe
@zamazan4ik
zamazan4ik / gist:88ea481a6e7118147e52649e9b31f9ab
Created November 14, 2024 01:33
osmgraph: PGO instrumented compared to Release
Running benches/graph.rs (x86_64-unknown-linux-gnu/release/deps/graph-106907e9f648f29b)
Benchmarking node_parse
Benchmarking node_parse: Warming up for 3.0000 s
Benchmarking node_parse: Collecting 100 samples in estimated 5.3819 s (30k iterations)
Benchmarking node_parse: Analyzing
node_parse time: [184.15 µs 184.19 µs 184.22 µs]
change: [+498.11% +500.43% +502.91%] (p = 0.00 < 0.05)
Performance has regressed.
Found 6 outliers among 100 measurements (6.00%)
3 (3.00%) high mild
Running benches/graph.rs (release/deps/graph-45a5fcf93f169c4d)
node_parse time: [30.069 µs 30.281 µs 30.520 µs]
Found 26 outliers among 100 measurements (26.00%)
16 (16.00%) low severe
3 (3.00%) high mild
7 (7.00%) high severe
way_parse time: [439.72 µs 440.01 µs 440.27 µs]
node_from_ways_parse time: [981.20 µs 981.73 µs 982.45 µs]