File size: 5,881 Bytes
09f1aab
 
a501641
9aed1c3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4fb9ba8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
09f1aab
a501641
09f1aab
 
a501641
4fb9ba8
 
 
 
a501641
 
 
 
 
 
 
 
 
 
 
 
 
09f1aab
a501641
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
---
dataset_info:
- config_name: vllm
  features:
  - name: commit_hash
    dtype: string
  - name: pr_url
    dtype: string
  - name: pr_date
    dtype: string
  - name: timeline_extracted_at
    dtype: string
  - name: analysis_extracted_at
    dtype: string
  - name: models
    list: string
  - name: perf_command
    dtype: string
  - name: has_serving
    dtype: bool
  - name: has_latency
    dtype: bool
  - name: has_throughput
    dtype: bool
  - name: uses_lm_eval
    dtype: bool
  - name: commit_subject
    dtype: string
  - name: commit_message
    dtype: string
  - name: commit_date
    dtype: string
  - name: files_changed
    list: string
  - name: stats
    struct:
    - name: commit_year
      dtype: int64
    - name: num_edited_lines
      dtype: int64
    - name: num_files
      dtype: int64
    - name: num_hunks
      dtype: int64
    - name: num_non_test_edited_lines
      dtype: int64
    - name: num_non_test_files
      dtype: int64
    - name: num_test_files
      dtype: int64
    - name: only_non_test_files
      dtype: int64
    - name: only_test_files
      dtype: int64
  - name: diff_text
    dtype: string
  - name: apis
    list: string
  - name: affected_paths
    list: string
  - name: repo
    dtype: string
  - name: hardware
    dtype: string
  - name: lm_eval_command
    dtype: string
  splits:
  - name: train
    num_bytes: 545364
    num_examples: 39
  download_size: 192570
  dataset_size: 545364
- config_name: sglang
  features:
  - name: commit_hash
    dtype: string
  - name: pr_url
    dtype: string
  - name: pr_date
    dtype: string
  - name: timeline_extracted_at
    dtype: string
  - name: analysis_extracted_at
    dtype: string
  - name: models
    list: string
  - name: perf_command
    dtype: string
  - name: has_serving
    dtype: bool
  - name: has_latency
    dtype: bool
  - name: has_throughput
    dtype: bool
  - name: uses_lm_eval
    dtype: bool
  - name: commit_subject
    dtype: string
  - name: commit_message
    dtype: string
  - name: commit_date
    dtype: string
  - name: files_changed
    list: string
  - name: stats
    struct:
    - name: commit_year
      dtype: int64
    - name: num_edited_lines
      dtype: int64
    - name: num_files
      dtype: int64
    - name: num_hunks
      dtype: int64
    - name: num_non_test_edited_lines
      dtype: int64
    - name: num_non_test_files
      dtype: int64
    - name: num_test_files
      dtype: int64
    - name: only_non_test_files
      dtype: int64
    - name: only_test_files
      dtype: int64
  - name: diff_text
    dtype: string
  - name: apis
    list: string
  - name: affected_paths
    list: string
  - name: repo
    dtype: string
  - name: hardware
    dtype: string
  - name: lm_eval_command
    dtype: string
  splits:
  - name: train
    num_bytes: 91137
    num_examples: 15
  download_size: 52410
  dataset_size: 91137
configs:
- config_name: vllm
  data_files:
  - split: train
    path: vllm/train-*
- config_name: sglang
  data_files:
  - split: train
    path: sglang/train-*
license: apache-2.0
task_categories:
- text-generation
language:
- en
size_categories:
- n<1K
tags:
- performance-optimization
- software-engineering
- benchmark
- ai-agents
- code
---

# ISO-Bench Dataset

A curated dataset of real-world software performance optimization commits from [vLLM](https://github.com/vllm-project/vllm) and [SGLang](https://github.com/sgl-project/sglang), designed for evaluating AI agents on code optimization tasks.

## Dataset Summary

| Config | Commits | Repository |
|--------|---------|------------|
| `vllm` | 39 | vLLM (LLM inference engine) |
| `sglang` | 15 | SGLang (LLM serving framework) |

Each entry represents a human-authored performance optimization commit with:
- The original commit diff and message
- Performance benchmark commands (`perf_command`)
- Model configurations for benchmarking
- Hardware requirements
- API surface analysis

## Usage

```python
from datasets import load_dataset

# Load vLLM optimization commits
vllm = load_dataset('Lossfunk/ISO-Bench', 'vllm', split='train')

# Load SGLang optimization commits
sglang = load_dataset('Lossfunk/ISO-Bench', 'sglang', split='train')

# Example: inspect a commit
print(vllm[0]['commit_subject'])
print(vllm[0]['perf_command'])
print(vllm[0]['models'])
```

## Schema

| Field | Type | Description |
|-------|------|-------------|
| `commit_hash` | string | Short hash of the optimization commit |
| `pr_url` | string | URL to the pull request |
| `commit_subject` | string | Commit message subject line |
| `commit_message` | string | Full commit message |
| `diff_text` | string | Unified diff of the optimization |
| `models` | list[string] | HuggingFace model IDs used for benchmarking |
| `perf_command` | string | Command to run the performance benchmark |
| `has_serving` | bool | Whether commit affects serving performance |
| `has_latency` | bool | Whether commit affects latency |
| `has_throughput` | bool | Whether commit affects throughput |
| `uses_lm_eval` | bool | Whether correctness is validated via lm-eval |
| `lm_eval_command` | string | lm-eval command for correctness validation |
| `files_changed` | list[string] | Files modified in the commit |
| `apis` | list[string] | Affected API endpoints/functions |
| `affected_paths` | list[string] | Code paths affected by the change |
| `hardware` | string | Required hardware (e.g., GPU type) |
| `stats` | struct | Commit statistics (lines changed, files, hunks) |

## How It Works

Each dataset entry captures a real performance optimization made by an expert developer. AI agents are given the codebase at the parent commit (before optimization) and must independently discover and implement a performance improvement. Their patches are then benchmarked against the human expert's solution using wall-clock timing comparisons.

## License

Apache 2.0