/ concept-collection / benchcompress
Sign in
concept-collection / benchcompress
benchcompress / web-ui / src / components / algorithm / AlgorithmContent.tsx
33 lines · 824 BBlameHistoryRaw
1import { Algorithm, BenchmarkData } from "../../types";
2import { BaseContent } from "../shared/BaseContent";
3import "../shared/ContentStyles.css";
5interface AlgorithmContentProps {
6 algorithm: Algorithm;
7 benchmarkData: BenchmarkData | null;
8 chartData: Array<{
9 algorithmOrDataset: string;
10 compression_ratio: number;
11 reference_compression_ratio: number | null;
12 encode_speed: number;
13 decode_speed: number;
14 }>;
17export const AlgorithmContent = ({
18 algorithm,
19 benchmarkData,
20 chartData,
21}: AlgorithmContentProps) => {
22 return (
23 <BaseContent
24 item={algorithm}
25 benchmarkData={benchmarkData}
26 chartData={chartData}
27 tagNavigationPrefix="/algorithms"
28 filterKey="algorithm"
29 showSortByCompressionRatio={false}
30 showNormalizeByReference={true}
31 />
32 );
33};
moveopenescclose