diff --git a/astro/components/Benchmarks.astro b/astro/components/Benchmarks.astro new file mode 100644 index 0000000..80f57e3 --- /dev/null +++ b/astro/components/Benchmarks.astro @@ -0,0 +1,165 @@ +
+
+

Ada is fast

+

+ On a benchmark where we need to validate and normalize{" "} + + thousands of URLs found on popular websites + {" "} we find that ada can be several times faster than popular competitors. +

+
+
+
+ +
+
+
+ + + + \ No newline at end of file diff --git a/astro/content/docs/index.md b/astro/content/docs/index.md deleted file mode 100644 index 311644a..0000000 --- a/astro/content/docs/index.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: "Ada URL Parser - Fast WHATWG Compliant URL parser" -description: WHATWG Compliant URL parser written with focus on compliance, performance and security across multiple platforms and languages. -template: splash -next: false ---- - -Meet Ada: WHATWG Compliant URL Parser diff --git a/astro/content/docs/index.mdx b/astro/content/docs/index.mdx new file mode 100644 index 0000000..abe8ea2 --- /dev/null +++ b/astro/content/docs/index.mdx @@ -0,0 +1,24 @@ +--- +title: "Fast WHATWG Compliant URL parser" +description: WHATWG Compliant URL parser written with focus on compliance, performance and security across multiple platforms and languages. +template: splash +hero: + tagline: Parse millions of URLs per second + image: + dark: ../../assets/logo-dark.svg + light: ../../assets/logo-light.svg + actions: + - text: Get Started + link: /introduction/ + icon: right-arrow + variant: primary + - text: GitHub + link: https://github.com/ada-url/ada + icon: external + variant: secondary +next: false +--- + +import Benchmarks from '../../components/Benchmarks.astro' + + diff --git a/package.json b/package.json index e7a2fba..63d0fda 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "@vercel/analytics": "^1.0.2", "astro": "^4.14.2", "autoprefixer": "10.4.16", + "chart.js": "^4.4.3", "class-variance-authority": "^0.7.0", "clsx": "^2.0.0", "contentlayer": "^0.3.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 151b7ff..2ffcfc4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -59,6 +59,9 @@ importers: autoprefixer: specifier: 10.4.16 version: 10.4.16(postcss@8.4.29) + chart.js: + specifier: ^4.4.3 + version: 4.4.3 class-variance-authority: specifier: ^0.7.0 version: 0.7.0 @@ -736,6 +739,9 @@ packages: resolution: {integrity: sha512-2X6bvghJ/JAoZO52lbgyAPFj8uCflhTo2g7nkFzEQdXd/D8rEeD4HtmTEpmtGCva260fcd66YNXBOYdnmHqSOg==} engines: {node: '>=12'} + '@kurkle/color@0.3.2': + resolution: {integrity: sha512-fuscdXJ9G1qb7W8VdHi+IwRqij3lBkosAm4ydQtEmbY58OzHXqQhvlxqEkoz0yssNVn38bcpRWgA9PP+OGoisw==} + '@mdx-js/esbuild@2.3.0': resolution: {integrity: sha512-r/vsqsM0E+U4Wr0DK+0EfmABE/eg+8ITW4DjvYdh3ve/tK2safaqHArNnaqbOk1DjYGrhxtoXoGaM3BY8fGBTA==} peerDependencies: @@ -1794,6 +1800,10 @@ packages: character-reference-invalid@2.0.1: resolution: {integrity: sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw==} + chart.js@4.4.3: + resolution: {integrity: sha512-qK1gkGSRYcJzqrrzdR6a+I0vQ4/R+SoODXyAjscQ/4mzuNzySaMCd+hyVxitSY1+L2fjPD1Gbn+ibNqRmwQeLw==} + engines: {pnpm: '>=8'} + chokidar@3.5.3: resolution: {integrity: sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==} engines: {node: '>= 8.10.0'} @@ -4720,6 +4730,8 @@ snapshots: jsbi: 4.3.0 tslib: 2.5.2 + '@kurkle/color@0.3.2': {} + '@mdx-js/esbuild@2.3.0(esbuild@0.21.5)': dependencies: '@mdx-js/mdx': 2.3.0 @@ -5849,6 +5861,10 @@ snapshots: character-reference-invalid@2.0.1: {} + chart.js@4.4.3: + dependencies: + '@kurkle/color': 0.3.2 + chokidar@3.5.3: dependencies: anymatch: 3.1.3