Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ken-matsui/gcc-bench

GCC benchmarks for built-in traits
https://github.com/ken-matsui/gcc-bench

Last synced: about 2 months ago
JSON representation

GCC benchmarks for built-in traits

Awesome Lists containing this project

README

        

# gcc-bench

This repository contains benchmarks for GCC, which is a continuation of [my GSoC'23 project](https://summerofcode.withgoogle.com/programs/2023/projects/SuvI1tlp).

## Environment

### Arch

```console
$ uname -m
x86_64
```

### CPU

```console
$ lscpu | grep 'Model name'
Model name: 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz

$ nproc --all
8
```

### Caches

```console
$ lscpu | grep "cache"
L1d cache: 192 KiB (4 instances)
L1i cache: 128 KiB (4 instances)
L2 cache: 5 MiB (4 instances)
L3 cache: 12 MiB (1 instance)
```

### Memory

```console
$ free -m
total used free shared buff/cache available
Mem: 15681 6642 4538 735 5559 9038
Swap: 1955 0 1955
```

## Tools

* Linux perf
* /usr/bin/time
* -ftime-report
* ministat

## Build GCC

```bash
../configure --enable-languages=c++ --disable-error --enable-checking=release --disable-bootstrap
make -j8
```

## Build

```bash
make build_remove_pointer
make build_all
```

## Benchmark

```bash
make bench_is_array_v
make bench_all
```

## gen-charts.py

```bash
make gen_charts
```

## Format codes

```bash
make format
```