Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions benchmarks/with-uniconsent/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import type { Metadata } from "next";
import type { ReactNode } from "react";

export const metadata: Metadata = {
title: "benchmark",
};

export default function RootLayout({
children,
}: Readonly<{
children: ReactNode;
}>) {
return (
<html lang="en" suppressHydrationWarning>
<head>
{/* biome-ignore lint/nursery/noSyncScripts: UniConsent's install snippet requires synchronous stubs before the CMP script. */}
<script src="https://cmp.uniconsent.com/v2/stub.min.js" />
{/* biome-ignore lint/nursery/noSyncScripts: UniConsent's install snippet requires synchronous stubs before the CMP script. */}
<script src="https://cmp.uniconsent.com/v2/stubgcm.min.js" />
<script async src="https://cmp.uniconsent.com/v2/d73d9ba530/cmp.js" />
</head>
<body>{children}</body>
</html>
);
}
7 changes: 7 additions & 0 deletions benchmarks/with-uniconsent/app/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default function Home() {
return (
<div>
<h1>Benchmark</h1>
</div>
);
}
43 changes: 43 additions & 0 deletions benchmarks/with-uniconsent/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"$schema": "./node_modules/@cookiebench/benchmark-schema/schema.json",
"name": "with-uniconsent",
"id": "uniconsent-banner",
"iterations": 20,
"cookieBanner": {
"selectors": ["#uniccmp .unic-bar"],
"serviceHosts": [
"cmp.uniconsent.com",
"cdn.uniconsent.com",
"api.uniconsent.com"
],
"waitForVisibility": true,
"measureViewportCoverage": true,
"expectedLayoutShift": true,
"serviceName": "UniConsent"
},
"internationalization": {
"detection": "ip",
"stringLoading": "server"
},
"techStack": {
"bundler": "unknown",
"bundleType": "iffe",
"frameworks": [],
"languages": ["javascript"],
"packageManager": "unknown",
"typescript": false
},
"source": {
"isOpenSource": false,
"license": "proprietary",
"website": "https://www.uniconsent.com"
},
"company": {
"name": "UniConsent",
"website": "https://www.uniconsent.com"
},
"includes": {
"backend": "proprietary",
"components": ["javascript"]
}
}
5 changes: 5 additions & 0 deletions benchmarks/with-uniconsent/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
7 changes: 7 additions & 0 deletions benchmarks/with-uniconsent/next.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import type { NextConfig } from "next";

const nextConfig: NextConfig = {
/* config options here */
};

export default nextConfig;
26 changes: 26 additions & 0 deletions benchmarks/with-uniconsent/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "with-uniconsent",
"private": true,
"scripts": {
"benchmark": "pnpm exec benchmark-cli benchmark",
"build": "next build",
"dev": "next dev --port 3000",
"fmt": "biome format . --write",
"lint": "biome lint .",
"start": "next start"
},
"dependencies": {
"next": "16.0.7",
"react": "^19.2.1",
"react-dom": "^19.2.1"
},
"devDependencies": {
"@cookiebench/benchmark-schema": "workspace:*",
"@cookiebench/cli": "workspace:*",
"@cookiebench/ts-config": "workspace:*",
"@types/node": "^24.10.1",
"@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3",
"typescript": "^5.9.3"
}
}
11 changes: 11 additions & 0 deletions benchmarks/with-uniconsent/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "@cookiebench/ts-config/nextjs.json",
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./*"]
}
},
"include": ["next-env.d.ts", ".next/types/**/*.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}
34 changes: 34 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.