|
| 1 | +--- |
| 2 | +import StarlightPage from '@astrojs/starlight/components/StarlightPage.astro'; |
| 3 | +import StackedXBarChart from '../../components/newSvelte/charts/StackedXBarChart.svelte'; |
| 4 | +import AssetSizeChart from '../../components/newSvelte/charts/release/AssetSizeChart.svelte'; |
| 5 | +import { getReleaseDataArray } from '../../utils/data'; |
| 6 | +
|
| 7 | +const dataArray = await getReleaseDataArray(); |
| 8 | +
|
| 9 | +const assetTypes = dataArray.get_asset_type_percentages(); |
| 10 | +const assetSize = dataArray.get_asset_size_by_version(); |
| 11 | +const assetInstructionSet = dataArray.get_asset_instruction_set_percentages(); |
| 12 | +--- |
| 13 | + |
| 14 | +<StarlightPage |
| 15 | + frontmatter={{ |
| 16 | + title: 'Release Assets', |
| 17 | + description: `Stats about the asset types and sizes of Obsidian releases.`, |
| 18 | + }} |
| 19 | + headings={[]} |
| 20 | +> |
| 21 | + |
| 22 | + <p> |
| 23 | + This page looks at the assets that are included in Obsidian releases, including the types of assets, their sizes, and what type of PCs they are for. |
| 24 | + </p> |
| 25 | + |
| 26 | + <p> |
| 27 | + The following graph groups the assets by type. |
| 28 | + The first bar shows the distribution of downloads among the different asset types. |
| 29 | + The second bar shows the distribution of how many assets of each type are included in all releases. |
| 30 | + The third bar shows the distribution of the average sizes of each asset type. |
| 31 | + </p> |
| 32 | + |
| 33 | + <p><StackedXBarChart dataPoints={assetTypes} percentages client:only="svelte" /></p> |
| 34 | + |
| 35 | + <p> |
| 36 | + The next graph shows the evolution of asset sizes over time. |
| 37 | + The data is split by asset type. |
| 38 | + Note that gaps may appear, as not every asset type is included in every release. |
| 39 | + </p> |
| 40 | + |
| 41 | + <p><AssetSizeChart dataPoints={assetSize} client:only="svelte" /></p> |
| 42 | + |
| 43 | + <p> |
| 44 | + This graph shows the split between downloads of assets for different instruction sets. |
| 45 | + The instruction set is the type of CPU architecture that the asset is built for, such as x86 or ARM. |
| 46 | + From this we can see that downloads for ARM make up only {assetInstructionSet.find((x) => x.layer === 'arm64')?.value?.toFixed(1)}% of the total downloads. |
| 47 | + The macOS <code>.dmg</code> assets make up the <code>both (.dmg)</code> category with {assetInstructionSet.find((x) => x.layer === 'both (.dmg)')?.value?.toFixed(1)}%, as they can be used on both x86 and ARM Macs. |
| 48 | + </p> |
| 49 | + |
| 50 | + <p><StackedXBarChart dataPoints={assetInstructionSet} percentages client:only="svelte" /></p> |
| 51 | + |
| 52 | +</StarlightPage> |
0 commit comments