/ concept-collection / benchcompress
Sign in
concept-collection / benchcompress
benchcompress / web-ui / src / types.ts
42 lines · 1012 BCodeBlameHistory
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;
22 version: string;
23 tags: string[];
db4e6b9links to source codeJeremy Magland 24 source_file?: string;
85d3449pagesJeremy Magland 25}
27export interface Dataset {
28 name: string;
29 description: string;
30 version: string;
31 tags: string[];
db4e6b9links to source codeJeremy Magland 32 source_file?: string;
447f8f1upload .npy fileJeremy Magland 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
be099efview dataset dataJeremy Magland 35 data_url_json?: string; // URL to download the dataset info as .json (dtype and shape)
85d3449pagesJeremy Magland 36}
a4762faweb-uiJeremy Magland 38export interface BenchmarkData {
39 results: BenchmarkResult[];
85d3449pagesJeremy Magland 40 algorithms: Algorithm[];
41 datasets: Dataset[];
a4762faweb-uiJeremy Magland 42}
moveopenescclose