/ concept-collection / benchcompress
Sign in
concept-collection / benchcompress
benchcompress / web-ui / src / types.ts
60 lines · 1.4 KBCodeBlameHistory
a4762faweb-uiJeremy Magland 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;
85d3449pagesJeremy Magland 19export interface Algorithm {
20 name: string;
21 description: string;
1ac6645long descriptionsJeremy Magland 22 long_description?: string;
85d3449pagesJeremy Magland 23 version: string;
24 tags: string[];
db4e6b9links to source codeJeremy Magland 25 source_file?: string;
85d3449pagesJeremy Magland 26}
28export interface Dataset {
29 name: string;
30 description: string;
1ac6645long descriptionsJeremy Magland 31 long_description?: string;
85d3449pagesJeremy Magland 32 version: string;
33 tags: string[];
db4e6b9links to source codeJeremy Magland 34 source_file?: string;
447f8f1upload .npy fileJeremy Magland 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
be099efview dataset dataJeremy Magland 37 data_url_json?: string; // URL to download the dataset info as .json (dtype and shape)
85d3449pagesJeremy Magland 38}
a4762faweb-uiJeremy Magland 40export interface BenchmarkData {
41 results: BenchmarkResult[];
85d3449pagesJeremy Magland 42 algorithms: Algorithm[];
43 datasets: Dataset[];
a4762faweb-uiJeremy Magland 44}
104f442improve layoutJeremy Magland 45
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 } };
moveopenescclose