/ concept-collection / benchcompress
concept-collection / benchcompress
benchcompress / web-ui / src / types.ts
60 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 long_description?: string;
23 version: string;
24 tags: string[];
25 source_file?: string;
28export interface Dataset {
29 name: string;
30 description: string;
31 long_description?: string;
32 version: string;
33 tags: string[];
34 source_file?: string;
35 data_url_npy?: string; // URL to download the dataset as .npy
36 data_url_raw?: string; // URL to download the raw dataset as .dat
37 data_url_json?: string; // URL to download the dataset info as .json (dtype and shape)
40export interface BenchmarkData {
41 results: BenchmarkResult[];
42 algorithms: Algorithm[];
43 datasets: Dataset[];
46export interface TabItem {
47 id: string;
48 label: string;
49 route: string;
52export interface TabsState {
53 tabs: TabItem[];
54 activeTabId: string;
57export type TabAction =
58 | { type: "ADD_TAB"; payload: { id: string; label: string; route: string } }
59 | { type: "SET_ACTIVE_TAB"; payload: string }
60 | { type: "REORDER_TABS"; payload: { fromIndex: number; toIndex: number } };