Datasets:
Synchronize main evaluation program pairs
Browse files
README.md
CHANGED
|
@@ -27,58 +27,46 @@ size_categories:
|
|
| 27 |
|
| 28 |
# Program Pair Data
|
| 29 |
|
| 30 |
-
This
|
| 31 |
-
|
| 32 |
-
training files, evaluation prompts and earlier base snapshots are not active
|
| 33 |
-
files in this revision. Use an explicit language configuration; each has one
|
| 34 |
-
`test` split. The previous mixed-schema `benchmark` configuration is retired.
|
| 35 |
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
Variable/method identifiers are not globally renamed. A small audited set of
|
| 42 |
-
source-revealing Java class names was neutralized in the display view.
|
| 43 |
|
| 44 |
-
|
|
|
|
| 45 |
|
| 46 |
-
|
| 47 |
-
quarantined comparisons were replaced with verified candidates from the
|
| 48 |
-
existing PIE pool. The inherited aggregate is not claimed to be a newly
|
| 49 |
-
computed equal-case geometric mean. The workload describes the available
|
| 50 |
-
published input pool; its exact historical timing subset is not recovered.
|
| 51 |
-
- Python uses CPU instruction counts; Java uses warmed execution elapsed
|
| 52 |
-
time. For these languages `speedup` is the equal-weight geometric mean of
|
| 53 |
-
the per-input slow/fast representative measurement ratios over the frozen
|
| 54 |
-
common input set, not a ratio of arithmetic means over heterogeneous inputs.
|
| 55 |
-
- Java includes both sides' whole-workload, across-JVM RSD in percent; both
|
| 56 |
-
are below 5% in this release. This is a stability filter, not a confidence
|
| 57 |
-
interval or a guarantee about every individual input.
|
| 58 |
-
- Each language contains 300 comparisons in each speedup range [2,4), [4,8),
|
| 59 |
-
and [8,infinity). Python/Java have at most five pairs per task; inherited
|
| 60 |
-
C++ has a maximum of six. These policies are not retroactively equated.
|
| 61 |
-
- `workload.description` and `workload.input_format` contain input context,
|
| 62 |
-
not runtime labels. Python/Java text uses the completed semantic review of
|
| 63 |
-
actual frozen common inputs. Workload metadata did not construct labels.
|
| 64 |
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
|
| 72 |
## Loading
|
| 73 |
|
| 74 |
```python
|
| 75 |
from datasets import load_dataset
|
|
|
|
| 76 |
data = load_dataset("JinNian0072/program-pair-data", "python", split="test")
|
| 77 |
assert len(data) == 900
|
| 78 |
print(data[0]["slow_code"], data[0]["fast_code"])
|
| 79 |
```
|
| 80 |
|
| 81 |
-
Use `cpp` or `java` for the other languages.
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
this card does not grant a new license to upstream contest code or data.
|
|
|
|
| 27 |
|
| 28 |
# Program Pair Data
|
| 29 |
|
| 30 |
+
This dataset contains 2,700 main-evaluation program pairs. Each language has
|
| 31 |
+
one `test` split with 900 pairs.
|
|
|
|
|
|
|
|
|
|
| 32 |
|
| 33 |
+
| Configuration | Pairs | Problems | Maximum pairs per problem |
|
| 34 |
+
| --- | ---: | ---: | ---: |
|
| 35 |
+
| `cpp` | 900 | 900 | 1 |
|
| 36 |
+
| `python` | 900 | 221 | 5 |
|
| 37 |
+
| `java` | 900 | 320 | 5 |
|
|
|
|
|
|
|
| 38 |
|
| 39 |
+
Each language contains 300 pairs in each slow-to-fast execution-cost ratio
|
| 40 |
+
range: [2, 4), [4, 8), and [8, infinity).
|
| 41 |
|
| 42 |
+
## Fields
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
|
| 44 |
+
- `language`, `problem_id`, `pair_id`: language, task and comparison identifiers.
|
| 45 |
+
- `slow_code`, `fast_code`: exact model-facing program text, ordered by the saved efficiency labels.
|
| 46 |
+
- `slow_code_id`, `fast_code_id`: SHA-256 hashes of the displayed source text.
|
| 47 |
+
- `measured_slow_code_id`, `measured_fast_code_id`: SHA-256 identifiers of the measured source programs, which can differ from the displayed source.
|
| 48 |
+
- `slow_id`, `fast_id`: measured implementation identifiers.
|
| 49 |
+
- `speedup`: the saved slow-to-fast execution-cost ratio.
|
| 50 |
+
- `measurement_metric`: PIE released gem5 runtime for C++, CPU instruction count for Python, or elapsed execution time for Java.
|
| 51 |
+
- `stratum`, `sampling_key`: ratio stratum and deterministic sampling key.
|
| 52 |
+
- `slow_time`, `fast_time`: released aggregate costs, present for C++.
|
| 53 |
+
|
| 54 |
+
The Python and Java ratios aggregate per-input measurement ratios; they are
|
| 55 |
+
not reconstructed as ratios of aggregate times. Test inputs, expected
|
| 56 |
+
outputs, per-run measurements and original measured-source text are not
|
| 57 |
+
included. This dataset provides the program pairs and saved efficiency
|
| 58 |
+
labels used in the main evaluation.
|
| 59 |
|
| 60 |
## Loading
|
| 61 |
|
| 62 |
```python
|
| 63 |
from datasets import load_dataset
|
| 64 |
+
|
| 65 |
data = load_dataset("JinNian0072/program-pair-data", "python", split="test")
|
| 66 |
assert len(data) == 900
|
| 67 |
print(data[0]["slow_code"], data[0]["fast_code"])
|
| 68 |
```
|
| 69 |
|
| 70 |
+
Use `cpp` or `java` for the other languages. The JSONL files are uncompressed.
|
| 71 |
+
`RELEASE.json` contains record counts and file checksums. Upstream code and
|
| 72 |
+
data retain their respective terms.
|
|
|
RELEASE.json
CHANGED
|
@@ -1 +1,26 @@
|
|
| 1 |
-
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"total_pairs": 2700,
|
| 3 |
+
"pairs_per_language": 900,
|
| 4 |
+
"problems_per_language": {
|
| 5 |
+
"cpp": 900,
|
| 6 |
+
"python": 221,
|
| 7 |
+
"java": 320
|
| 8 |
+
},
|
| 9 |
+
"files": {
|
| 10 |
+
"final_benchmark_uniform/cpp_seed42_sanitized.jsonl": {
|
| 11 |
+
"bytes": 4071844,
|
| 12 |
+
"rows": 900,
|
| 13 |
+
"sha256": "fc7a12fda6a8901695344cbfab7adf1b42047d9a85eeebc08a98a65931d11247"
|
| 14 |
+
},
|
| 15 |
+
"final_benchmark_uniform/python_seed42_sanitized.jsonl": {
|
| 16 |
+
"bytes": 1669655,
|
| 17 |
+
"rows": 900,
|
| 18 |
+
"sha256": "7db637509b7b3ac9a443e71fb31964710b4077109afadee61934d4e3db5d5900"
|
| 19 |
+
},
|
| 20 |
+
"final_benchmark_uniform/java_seed42_sanitized_process.jsonl": {
|
| 21 |
+
"bytes": 6622661,
|
| 22 |
+
"rows": 900,
|
| 23 |
+
"sha256": "2729c673fd3ab39a39a35f8e6e1459a8db40f62ffb3b4f9c70a55ffa5ce0cb94"
|
| 24 |
+
}
|
| 25 |
+
}
|
| 26 |
+
}
|
final_benchmark_uniform/cpp_seed42_sanitized.jsonl
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
final_benchmark_uniform/java_seed42_sanitized_process.jsonl
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2729c673fd3ab39a39a35f8e6e1459a8db40f62ffb3b4f9c70a55ffa5ce0cb94
|
| 3 |
+
size 6622661
|
final_benchmark_uniform/python_seed42_sanitized.jsonl
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|