Skip to content

Instantly share code, notes, and snippets.

View sztomi's full-sized avatar

Tamás Szelei sztomi

View GitHub Profile
@sztomi
sztomi / benchmark.py
Created March 13, 2024 22:30
PGO mystery
#! /usr/bin/env python3
import json
import os
import shlex
import subprocess as sp
import time
from contextlib import contextmanager
from pathlib import Path
from tempfile import TemporaryDirectory
@sztomi
sztomi / Boring clang-18
Last active March 13, 2024 22:55
Benchmark output
❯ ./benchmark.py ~/src/CMake/build/compile_commands.json /home/tamas/projects/build-llvm/bin/clang-18
Loading commands...
Benchmarking ProcessUNIX.c compilation... Mean: 0.045s
Benchmarking Base64.c compilation... Mean: 0.010s
Benchmarking Encodin
This file has been truncated, but you can view the full file.
2024-03-15 11:36:04.195 [info] (Client) Pylance async client (2024.2.3) started with python extension (2023.14.0)
2024-03-15 11:36:04.691 [info] [Info - 11:36:04 AM] (2125926) Pylance language server 2024.2.3 (pyright version 1.1.348, commit cfb1de0c) starting
2024-03-15 11:36:04.691 [info] [Info - 11:36:04 AM] (2125926) Server root directory: file:///home/tamas/.vscode/extensions/ms-python.vscode-pylance-2024.2.3/dist
2024-03-15 11:36:04.694 [info] [Info - 11:36:04 AM] (2125926) Starting service instance "llvmcraft"
2024-03-15 11:36:04.733 [info] [Info - 11:36:04 AM] (2125926) Setting pythonPath for service "llvmcraft": "/home/tamas/.local/share/hatch/env/virtual/knit/hPnSDupG/knit/bin/python"
2024-03-15 11:36:04.733 [info] [Info - 11:36:04 AM] (2125926) Setting environmentName for service "llvmcraft": "3.10.13 (knit venv)"
2024-03-15 11:36:04.734 [info] [Info - 11:36:04 AM] (2125926) Loading pyproject.toml file at /home/tamas/projects/llvmcraft/pyproject.toml
2024-03-15 11:36:04.736 [info] [Info - 11