GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - focs-lab/tsan-experiments: Benchmarks and script for TSan and improved TSan performance evaluation

BranchesTags
Open more actions menu

Latest commit

 

History

247 Commits
247 Commits

Folders and files

NameName
Last commit message
Last commit date
bench
bench
 
 
chromium
chromium
 
 
nosql
nosql
 
 
projects/ffmpeg
projects/ffmpeg
 
 
sql
sql
 
 
tools
tools
 
 
tsan-tests
tsan-tests
 
 
unittests
unittests
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
config_definitions.sh
config_definitions.sh
 
 
play
play
 
 

Repository files navigation

ThreadSanitizer experiments

Build scripts, workloads, and result-processing tools for evaluating ThreadSanitizer (TSan) and analysis-based instrumentation optimizations. The experiments measure runtime, memory use, compilation time, and instrumentation counts across several applications.

The compiler implementation is maintained in focs-lab/llvm-project. This repository contains the experiment harness and application-specific setup.

Related research: Instrumentation Optimization for Practical Dynamic Race Detection, to appear at ATC 2026.

Start here

  1. Choose the workload and compiler revision for the experiment you want to reproduce. These scripts evolve alongside the compiler; record both commits.

  2. Build the patched LLVM/Clang toolchain with the required TSan optimization flags. A stock Clang build does not provide these flags.

  3. Set the compiler build directory explicitly:

    export LLVM_TSAN_ROOT=/absolute/path/to/patched/llvm/build
    source tools/tsan_compiler.sh

    Run this from the repository root. The helper checks the toolchain and exports TSAN_CC, TSAN_CXX, and TSAN_OPT.

  4. Follow the workload's preparation, build, run, and analysis scripts below. Check their path settings and prerequisites before launching a full campaign. Many scripts expect to run from their own workload directory.

Find an experiment

Workload Entry points
SQLite Prepare sources, build one configuration, run it, analyse results
MySQL Build, benchmark launcher guide
Redis Build scripts, benchmark scripts
Memcached Build, benchmark
ClickHouse Build and benchmark scripts
FFmpeg Build, benchmark configurations, input provenance
Chromium Build configurations, run benchmarks

Shared tools provide compiler selection, build metadata, trace processing, and result analysis. TSan tests and unit tests provide additional checks.

Configurations and reproducibility

config_definitions.sh maps configuration names to compiler flags. Some workloads also have their own configuration files.

  • orig: baseline without TSan instrumentation.
  • tsan: baseline TSan instrumentation.
  • tsan-*: individual optimizations or experimental combinations. Read the corresponding flags and comments before comparing results.

Keep the compiler and harness revisions, compiler flags, workload version, inputs, thread count, and machine configuration with each result. Preserve build metadata and raw logs so that measurements can be traced back to the exact experiment.

For setup questions or missing reproduction details, please open an issue.

About

Benchmarks and script for TSan and improved TSan performance evaluation

Resources

Readme
Activity
Custom properties

Stars

1 star

Watchers

3 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.