Menu

Build Buddy, Day 3: my slowest C# error was really a cold start
📰

Build Buddy, Day 3: my slowest C# error was really a cold start

DEV Community: dotnet·Gabby Gill·26 days ago
#IHYpxURz
#devtodotnet#devto#dev#error#runs
Long article (311 words) — no AI summary yet.
Reading 0:00
15s threshold

Day 3 of MLH Global Hack Week: Builders Week. I loaded every benchmark run from Build Buddy into a Tiger Data hypertable to see what the numbers look like over time.

The setup

A PostgreSQL table for each result: run time, model, sample, error code, build passed, fixed, seconds

Converted to a hypertable with create_hypertable('build_results', by_range('run_at', INTERVAL '1 day'))

24 real rows from 4 runs, which landed in 2 daily chunks

Queried with time_bucket for fix rate and speed

The SQL is in the repo: db/tiger-hypertable.sql

The "hardest" error

Error Runs Avg s Fastest Slowest

CS0029 4 15.0 7.6 23.1

CS0161 4 11.6 10.4 12.9

CS0246 4 8.3 6.9 9.6

CS0103 4 6.9 6.1 7.8

CS1061 4 6.8 5.2 8.3

CS1002 4 5.5 4.8 6.1

CS0029 looked like the hardest error to fix. It isn't. It's the first sample in every run, alphabetically, so it pays for loading the model into memory:

Cold runs: 21.7 s and 23.1 s

Warm runs: 7.7 s and 7.6 s

The same thing shows up per run.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.