OpenChainBench commited on
Commit
f7ff1b4
·
verified ·
1 Parent(s): eea26b7

snapshot 2026-06-22 (rows: h=26 p=254 ts=1842)

Browse files
CITATION.cff ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cff-version: 1.2.0
2
+ title: OpenChainBench Benchmarks
3
+ abstract: >-
4
+ Daily snapshots of every public benchmark on openchainbench.com -
5
+ open, reproducible measurements of crypto infrastructure (RPCs,
6
+ oracles, bridges, data APIs, Polymarket adapters, Hyperliquid
7
+ builders). Released as Hive-partitioned Parquet under CC-BY-4.0.
8
+ authors:
9
+ - name: OpenChainBench Contributors
10
+ website: https://openchainbench.com
11
+ type: dataset
12
+ license: CC-BY-4.0
13
+ repository-code: https://github.com/ChainBench/OpenChainBench
14
+ url: https://huggingface.co/datasets/OpenChainBench/benchmarks
15
+ date-released: "2026-06-22"
16
+ keywords:
17
+ - blockchain
18
+ - crypto
19
+ - benchmarks
20
+ - infrastructure
21
+ - latency
22
+ - oracles
23
+ - bridges
24
+ - polymarket
25
+ - hyperliquid
LICENSE ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Creative Commons Attribution 4.0 International (CC BY 4.0)
2
+
3
+ You are free to:
4
+ Share - copy and redistribute the material in any medium or format
5
+ Adapt - remix, transform, and build upon the material for any purpose,
6
+ even commercially.
7
+
8
+ Under the following terms:
9
+ Attribution - You must give appropriate credit, provide a link to the
10
+ license, and indicate if changes were made. You may do
11
+ so in any reasonable manner, but not in any way that
12
+ suggests the licensor endorses you or your use.
13
+
14
+ No additional restrictions - You may not apply legal terms or
15
+ technological measures that legally restrict others from doing anything
16
+ the license permits.
17
+
18
+ Full license text: https://creativecommons.org/licenses/by/4.0/legalcode
19
+ Summary: https://creativecommons.org/licenses/by/4.0/
20
+
21
+ Suggested attribution:
22
+ OpenChainBench. (2026). OpenChainBench Benchmarks [Data set].
23
+ Hugging Face. https://huggingface.co/datasets/OpenChainBench/benchmarks
README.md ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ language:
4
+ - en
5
+ pretty_name: OpenChainBench Benchmarks
6
+ task_categories:
7
+ - tabular-classification
8
+ - other
9
+ tags:
10
+ - crypto
11
+ - blockchain
12
+ - benchmarks
13
+ - rpc
14
+ - oracles
15
+ - bridges
16
+ - polymarket
17
+ - infrastructure
18
+ - latency
19
+ - finance
20
+ size_categories:
21
+ - 1K<n<10K
22
+ configs:
23
+ - config_name: headlines
24
+ data_files:
25
+ - split: train
26
+ path: headlines/**/*.parquet
27
+ - config_name: providers
28
+ data_files:
29
+ - split: train
30
+ path: providers/**/*.parquet
31
+ - config_name: timeseries
32
+ data_files:
33
+ - split: train
34
+ path: timeseries/**/*.parquet
35
+ ---
36
+
37
+ # OpenChainBench Benchmarks
38
+
39
+ Daily snapshots of every public benchmark on
40
+ [openchainbench.com](https://openchainbench.com), released as
41
+ Hive-partitioned Parquet under CC-BY-4.0.
42
+
43
+ OCB measures latency, cost, coverage and accuracy of crypto
44
+ infrastructure (RPCs, oracles, bridges, data APIs, Polymarket adapters,
45
+ Hyperliquid builders). Every snapshot here mirrors the
46
+ [/api/citable](https://openchainbench.com/api/citable) and
47
+ [/api/stat/&lt;slug&gt;](https://openchainbench.com/api/stat/bridge-quote-latency)
48
+ JSON feeds at the time of capture.
49
+
50
+ Latest snapshot: **2026-06-22** (captured at 2026-06-22T14:36:58+00:00, schema v1).
51
+
52
+ ## Tables
53
+
54
+ | Config | Grain | What's in it |
55
+ |---|---|---|
56
+ | `headlines` | 1 row per (bench, day) | Title, metric, leader, headline value, license, source URL |
57
+ | `providers` | 1 row per (bench, provider, day) | p50/p90/p99, mean, success rate, sample size, is_leader flag |
58
+ | `timeseries` | 1 row per (bench, point, day) | 24h sparkline values (~72 points per bench) |
59
+
60
+ All tables are partitioned by `snapshot_date=YYYY-MM-DD`. Each row also
61
+ carries a `captured_at` timestamp (UTC, ISO 8601) and a `schema_version`
62
+ integer.
63
+
64
+ ## Quick start
65
+
66
+ ### Python (datasets)
67
+
68
+ ```python
69
+ from datasets import load_dataset
70
+ ds = load_dataset("OpenChainBench/benchmarks", "headlines", split="train")
71
+ print(ds.filter(lambda r: r["slug"] == "bridge-quote-latency")[0])
72
+ ```
73
+
74
+ ### Polars (recommended for analytics)
75
+
76
+ ```python
77
+ import polars as pl
78
+ df = pl.scan_parquet(
79
+ "hf://datasets/OpenChainBench/benchmarks/headlines/**/*.parquet"
80
+ )
81
+ latest = (
82
+ df.filter(pl.col("snapshot_date") == df.select(pl.col("snapshot_date").max()).collect().item())
83
+ .select(["slug", "leader_name", "value", "unit"])
84
+ .collect()
85
+ )
86
+ print(latest)
87
+ ```
88
+
89
+ ### DuckDB (one-liner)
90
+
91
+ ```sql
92
+ SELECT slug, leader_name, value, unit
93
+ FROM 'hf://datasets/OpenChainBench/benchmarks/headlines/**/*.parquet'
94
+ WHERE snapshot_date = (SELECT max(snapshot_date) FROM 'hf://datasets/OpenChainBench/benchmarks/headlines/**/*.parquet');
95
+ ```
96
+
97
+ More examples in `examples/`.
98
+
99
+ ## Methodology
100
+
101
+ Each benchmark documents its full methodology on the OCB site (per-bench
102
+ URL is in the `citation_url` column of `headlines`). Reading list:
103
+
104
+ - Per-bench page (open methodology): `https://openchainbench.com/benchmarks/<slug>`
105
+ - Site-wide methodology: `https://openchainbench.com/methodology`
106
+ - YAML spec source (Apache 2.0): `https://github.com/ChainBench/OpenChainBench/tree/main/benchmarks`
107
+
108
+ Harness code is open source where applicable (column `source_url`).
109
+
110
+ ## Schema stability promise
111
+
112
+ - New columns may be added without warning. Consumer queries should
113
+ select named columns rather than `SELECT *`.
114
+ - Existing columns will never be renamed or removed. If a breaking
115
+ change ever proves unavoidable, a parallel v2 folder ships alongside
116
+ the v1 partitions so old consumers keep working.
117
+ - `schema_version` integer in each row marks the additive schema epoch.
118
+
119
+ ## Update cadence
120
+
121
+ Snapshots run daily at 00:00 UTC via a GitHub Action. If a run aborts
122
+ on a quorum check (the source feed has fewer than half its benches
123
+ live), no new partition is added that day - the previous good snapshot
124
+ stays as truth.
125
+
126
+ ## License & citation
127
+
128
+ Data is released under
129
+ [Creative Commons Attribution 4.0](https://creativecommons.org/licenses/by/4.0/).
130
+ Use it freely with attribution to OpenChainBench.
131
+
132
+ For academic citation see `CITATION.cff` at the root of this dataset
133
+ (GitHub / HF / Zenodo all parse it). Suggested attribution string:
134
+
135
+ > OpenChainBench. (2026). OpenChainBench Benchmarks [Data set].
136
+ > Hugging Face. https://huggingface.co/datasets/OpenChainBench/benchmarks
137
+
138
+ ## Provenance
139
+
140
+ - Source code (publisher + benchmark YAML specs): https://github.com/ChainBench/OpenChainBench
141
+ - Live measurement APIs: https://openchainbench.com/api/citable, /api/stat, /api/llm-context, /api/mcp
142
+ - Issues / questions: https://github.com/ChainBench/OpenChainBench/issues
examples/01_pandas.py ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ Load the OCB headlines feed with pandas via the Hugging Face datasets
3
+ library. Good when you want a familiar DataFrame and the dataset is
4
+ small enough to fit in memory (it is).
5
+ """
6
+
7
+ from datasets import load_dataset
8
+
9
+ ds = load_dataset(
10
+ "OpenChainBench/benchmarks",
11
+ "headlines",
12
+ split="train",
13
+ )
14
+ df = ds.to_pandas()
15
+
16
+ # Latest snapshot only
17
+ latest = df["snapshot_date"].max()
18
+ today = df[df["snapshot_date"] == latest]
19
+
20
+ # Top 10 benchmarks by sample size today
21
+ print(
22
+ today.sort_values("sample_size", ascending=False)[
23
+ ["slug", "leader_name", "value", "unit", "sample_size"]
24
+ ].head(10)
25
+ )
examples/02_polars.py ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ Stream the OCB providers feed with Polars directly from HF. Pushdown
3
+ predicate + projection means only the columns and partitions you ask
4
+ for ever hit the wire. Recommended for analytic workloads.
5
+ """
6
+
7
+ import polars as pl
8
+
9
+ providers = pl.scan_parquet(
10
+ "hf://datasets/OpenChainBench/benchmarks/providers/**/*.parquet"
11
+ )
12
+
13
+ # Trend of Mobula's p50 latency on bridge-quote-latency across all snapshots
14
+ trend = (
15
+ providers.filter(
16
+ (pl.col("bench_slug") == "bridge-quote-latency")
17
+ & (pl.col("provider_slug") == "mobula")
18
+ )
19
+ .select(["snapshot_date", "p50", "p90", "p99", "sample_size"])
20
+ .sort("snapshot_date")
21
+ .collect()
22
+ )
23
+ print(trend)
examples/03_duckdb.sql ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- DuckDB can read Parquet directly from Hugging Face over httpfs.
2
+ -- Install once:
3
+ -- INSTALL httpfs; LOAD httpfs;
4
+ -- Then run any query like the ones below.
5
+
6
+ -- 1) Today's leader per benchmark, sorted by sample size
7
+ WITH latest AS (
8
+ SELECT max(snapshot_date) AS d
9
+ FROM 'hf://datasets/OpenChainBench/benchmarks/headlines/**/*.parquet'
10
+ )
11
+ SELECT slug, leader_name, value, unit, sample_size
12
+ FROM 'hf://datasets/OpenChainBench/benchmarks/headlines/**/*.parquet'
13
+ WHERE snapshot_date = (SELECT d FROM latest)
14
+ ORDER BY sample_size DESC;
15
+
16
+ -- 2) 7-day p50 trend for one bench / one provider
17
+ SELECT snapshot_date, p50, p90, p99, success_rate
18
+ FROM 'hf://datasets/OpenChainBench/benchmarks/providers/**/*.parquet'
19
+ WHERE bench_slug = 'bridge-quote-latency'
20
+ AND provider_slug = 'mobula'
21
+ ORDER BY snapshot_date DESC
22
+ LIMIT 7;
23
+
24
+ -- 3) Sparkline for today, one bench
25
+ SELECT point_index, value
26
+ FROM 'hf://datasets/OpenChainBench/benchmarks/timeseries/**/*.parquet'
27
+ WHERE bench_slug = 'bridge-quote-latency'
28
+ AND snapshot_date = (
29
+ SELECT max(snapshot_date)
30
+ FROM 'hf://datasets/OpenChainBench/benchmarks/timeseries/**/*.parquet'
31
+ )
32
+ ORDER BY point_index;
headlines/snapshot_date=2026-06-22/part-0.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:685461a966c3900de251d6c92d7e72e5e456b255d46ec05fca74285159a414d9
3
+ size 16276
providers/snapshot_date=2026-06-22/part-0.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:43b9c08b37313251a442286a51741ac0bcbac68bc34bf2989c83e35381100222
3
+ size 20889
schemas/headlines.schema.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://huggingface.co/datasets/OpenChainBench/benchmarks/blob/main/schemas/headlines.schema.json",
4
+ "title": "OCB headlines row",
5
+ "description": "One row per (slug, snapshot_date). Lightweight headline feed.",
6
+ "type": "object",
7
+ "required": [
8
+ "snapshot_date",
9
+ "captured_at",
10
+ "slug",
11
+ "title",
12
+ "category",
13
+ "metric",
14
+ "unit",
15
+ "status",
16
+ "schema_version"
17
+ ],
18
+ "properties": {
19
+ "snapshot_date": { "type": "string", "format": "date" },
20
+ "captured_at": { "type": "string", "format": "date-time" },
21
+ "slug": { "type": "string" },
22
+ "title": { "type": "string" },
23
+ "category": { "type": "string" },
24
+ "metric": { "type": "string" },
25
+ "unit": { "type": "string" },
26
+ "status": { "type": "string", "enum": ["live", "draft", "insufficient"] },
27
+ "value": { "type": ["number", "null"] },
28
+ "leader_name": { "type": ["string", "null"] },
29
+ "leader_slug": { "type": ["string", "null"] },
30
+ "leader_value": { "type": ["number", "null"] },
31
+ "sample_size": { "type": ["number", "null"] },
32
+ "as_of": { "type": ["string", "null"], "format": "date-time" },
33
+ "citation_url": { "type": "string", "format": "uri" },
34
+ "stat_api_url": { "type": "string", "format": "uri" },
35
+ "source_url": { "type": ["string", "null"], "format": "uri" },
36
+ "license": { "type": "string", "const": "CC-BY-4.0" },
37
+ "schema_version": { "type": "integer", "minimum": 1 }
38
+ }
39
+ }
schemas/providers.schema.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://huggingface.co/datasets/OpenChainBench/benchmarks/blob/main/schemas/providers.schema.json",
4
+ "title": "OCB providers row",
5
+ "description": "One row per (bench, provider, snapshot_date). Detailed ranking with percentiles.",
6
+ "type": "object",
7
+ "required": [
8
+ "snapshot_date",
9
+ "captured_at",
10
+ "bench_slug",
11
+ "provider_slug",
12
+ "schema_version"
13
+ ],
14
+ "properties": {
15
+ "snapshot_date": { "type": "string", "format": "date" },
16
+ "captured_at": { "type": "string", "format": "date-time" },
17
+ "bench_slug": { "type": "string" },
18
+ "provider_name": { "type": "string" },
19
+ "provider_slug": { "type": "string" },
20
+ "p50": { "type": ["number", "null"] },
21
+ "p90": { "type": ["number", "null"] },
22
+ "p99": { "type": ["number", "null"] },
23
+ "mean": { "type": ["number", "null"] },
24
+ "success_rate": { "type": ["number", "null"] },
25
+ "sample_size": { "type": ["number", "null"] },
26
+ "is_leader": { "type": "boolean" },
27
+ "schema_version": { "type": "integer", "minimum": 1 }
28
+ }
29
+ }
schemas/timeseries.schema.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://huggingface.co/datasets/OpenChainBench/benchmarks/blob/main/schemas/timeseries.schema.json",
4
+ "title": "OCB timeseries row",
5
+ "description": "One row per (bench, point_index, snapshot_date). 24h sparkline series.",
6
+ "type": "object",
7
+ "required": [
8
+ "snapshot_date",
9
+ "captured_at",
10
+ "bench_slug",
11
+ "point_index",
12
+ "value",
13
+ "window",
14
+ "schema_version"
15
+ ],
16
+ "properties": {
17
+ "snapshot_date": { "type": "string", "format": "date" },
18
+ "captured_at": { "type": "string", "format": "date-time" },
19
+ "bench_slug": { "type": "string" },
20
+ "point_index": { "type": "integer", "minimum": 0 },
21
+ "value": { "type": "number" },
22
+ "window": { "type": "string", "enum": ["24h", "7d", "30d"] },
23
+ "schema_version": { "type": "integer", "minimum": 1 }
24
+ }
25
+ }
timeseries/snapshot_date=2026-06-22/part-0.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4206488a61e584efdcc0b9beacf4e7df6cd03cb6fcdab732169619b61616022e
3
+ size 15724