danmar / simplecpp

C++ preprocessor
BSD Zero Clause License
209 stars 83 forks source link

read headers via `FileStream` #353

Closed firewave closed 5 months ago

firewave commented 6 months ago

./no-fuzz main.cpp 200

GCC 1,506,421,510 -> 1,385,600,956

Benchmark 1: ./no-fuzz main.cpp 200
  Time (mean ± σ):     144.8 ms ±   4.8 ms    [User: 141.5 ms, System: 3.3 ms]
  Range (min … max):   139.1 ms … 160.9 ms    21 runs
Benchmark 1: ./no-fuzz main.cpp 200
  Time (mean ± σ):     135.0 ms ±   1.5 ms    [User: 130.7 ms, System: 4.1 ms]
  Range (min … max):   132.9 ms … 137.7 ms    21 runs

Clang 1,477,133,727 -> 1,356,543,560

Benchmark 1: ./no-fuzz main.cpp 200
  Time (mean ± σ):     137.0 ms ±   1.3 ms    [User: 131.7 ms, System: 5.3 ms]
  Range (min … max):   135.0 ms … 140.7 ms    21 runs
Benchmark 1: ./no-fuzz main.cpp 200
  Time (mean ± σ):     130.7 ms ±   1.2 ms    [User: 127.9 ms, System: 2.9 ms]
  Range (min … max):   128.6 ms … 133.6 ms    22 runs
firewave commented 5 months ago

As usual you need to merge it as I have no permissions.