/ concept-collection / benchcompress
Sign in
concept-collection / benchcompress
benchcompress / web-ui / src / types.ts
58 lines · 1.4 KBBlameHistoryRaw
1export interface BenchmarkResult {
2 dataset: string;
3 algorithm: string;
4 algorithm_version: string;
5 dataset_version: string;
6 system_version: string;
7 compression_ratio: number;
8 encode_time: number;
9 decode_time: number;
10 encode_mb_per_sec: number;
11 decode_mb_per_sec: number;
12 original_size: number;
13 compressed_size: number;
14 array_shape: number[];
15 array_dtype: string;
16 timestamp: number;
19export interface Algorithm {
20 name: string;
21 description: string;
22 version: string;
23 tags: string[];
24 source_file?: string;
27export interface Dataset {
28 name: string;
29 description: string;
30 version: string;
31 tags: string[];
32 source_file?: string;
33 data_url_npy?: string; // URL to download the dataset as .npy
34 data_url_raw?: string; // URL to download the raw dataset as .dat
35 data_url_json?: string; // URL to download the dataset info as .json (dtype and shape)
38export interface BenchmarkData {
39 results: BenchmarkResult[];
40 algorithms: Algorithm[];
41 datasets: Dataset[];
44export interface TabItem {
45 id: string;
46 label: string;
47 route: string;
50export interface TabsState {
51 tabs: TabItem[];
52 activeTabId: string;
55export type TabAction =
56 | { type: "ADD_TAB"; payload: { id: string; label: string; route: string } }
57 | { type: "SET_ACTIVE_TAB"; payload: string }
58 | { type: "REORDER_TABS"; payload: { fromIndex: number; toIndex: number } };
moveopenescclose