Skip to content

Instantly share code, notes, and snippets.

View bytezzz's full-sized avatar

Zijie Zhao bytezzz

  • University of Pennsylvania
  • Philadelphia
  • 10:16 (UTC -05:00)
View GitHub Profile
@bytezzz
bytezzz / TPCH_PGSQL.md
Last active September 11, 2023 13:09
Import TPCH Benchmark into PostgreSQL
  1. Clone TPCH Repo with git clone https://github.com/electrum/tpch-dbgen.git
  2. cd tpch-dbgen
  3. Replace default Makefile with Makefile.suite cp makefile.suite makefile
  4. Edit new makefile by fill following settings:
CC=gcc
DATABASE=POSTGRESQL
MACHINE=LINUX
WORKLOAD=TPCH
@bytezzz
bytezzz / perf_manager.rs
Created August 24, 2025 14:37
Profiling Rust Code Section with Linux Perf
//! Performance profiling integration module
//!
//! This module provides integration with Linux `perf` tool for performance profiling.
//! It uses file descriptors to communicate with a perf process that has been started
//! with the `--control` option.
//!
//! # Usage
//!
//! ## Starting perf with control file descriptors
//!