pull/18/head
Vladimir Mandic 2023-02-21 09:00:01 -05:00
parent a38f40f3d5
commit 71c2e3c70e
10 changed files with 97 additions and 1 deletions

39
pages/.eslintrc.json Normal file
View File

@ -0,0 +1,39 @@
{
"globals": {},
"env": {
"browser": true,
"commonjs": true,
"node": true,
"jquery": false,
"es2020": true
},
"parserOptions": { "ecmaVersion": 2020 },
"plugins": [ "html" ],
"extends": [
"eslint:recommended",
"plugin:json/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:node/recommended",
"airbnb-base"
],
"rules": {
"max-len": [1, 220, 3],
"camelcase": "off",
"guard-for-in": "off",
"no-await-in-loop": "off",
"no-loop-func": "off",
"no-mixed-operators": "off",
"no-plusplus": "off",
"no-restricted-globals": "off",
"no-restricted-syntax": "off",
"no-return-assign": "off",
"no-promise-executor-return": "off",
"node/no-unsupported-features/es-syntax": "off",
"object-curly-newline": "off",
"prefer-destructuring": "off",
"promise/always-return": "off",
"prefer-template": "off",
"no-continue": "off"
}
}

23
pages/README.md Normal file
View File

@ -0,0 +1,23 @@
# SD WebUI Benchmark Data
## Run Benchmark & Submit
- Benchmark data is created using **SD WebUI Extension** [**System Info**](https://github.com/vladmandic/sd-extension-system-info)
<https://github.com/vladmandic/sd-extension-system-info>
- Record is appended if any of the system properties change
Else benchmark data replaces existing matching record
- Data is submitted to cloud logger and stored online for 48 hours
<https://papertrailapp.com>
## Update Results
- GitHub Action runs periodically
<https://vladmandic.github.io/sd-extension-system-info/pages/benchmark-download.js>
- Downloads latest benchmark data
- Merges downloaded data with local data
<https://vladmandic.github.io/sd-extension-system-info/pages/benchmark-raw.json>
- Creates JSON with sorted unique records
<https://vladmandic.github.io/sd-extension-system-info/pages/benchmark-data.json>
- Renders as Markdown table
<https://github.com/vladmandic/sd-extension-system-info/blob/main/pages/benchmark.md>
- GitPages Serves HTML page which downloads and renders JSON data
<https://vladmandic.github.io/sd-extension-system-info/pages/benchmark.html>

24
pages/benchmark.html Normal file
View File

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>SD WebUI Benchmark Data</title>
<meta name="viewport" content="width=device-width" id="viewport">
<meta name="keywords" content="benchmark">
<meta name="application-name" content="SD WebUI Benchmark Data">
<meta name="description" content="SD WebUI Benchmark Data; Author: Vladimir Mandic <https://github.com/vladmandic>">
<meta name="theme-color" content="#000000">
<link rel="manifest" href="manifest.webmanifest">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon" href="favicon.png">
<script src="benchmark.js" type="module"></script>
<style>
@font-face { font-family: 'Lato'; font-display: swap; font-style: normal; font-weight: 100; src: local('Lato'), url('lato-light.woff2') }
html { font-family: 'Lato', 'Segoe UI'; font-size: 16px; font-variant: small-caps; }
body { margin: 0; background: black; color: white; overflow-x: hidden; width: 100vw; height: 100vh; }
body::-webkit-scrollbar { display: none; }
</style>
</head>
<body>
</body>
</html>

View File

@ -1,7 +1,7 @@
# Benchmark Data
## Updated: 2023-02-21T13:08:15.539Z
## Updated: 2023-02-21T13:59:14.016Z
### Submit data using WebUI extension: <https://github.com/vladmandic/sd-extension-system-info>

BIN
pages/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

BIN
pages/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

BIN
pages/lato-light.woff2 Normal file

Binary file not shown.

View File

@ -0,0 +1,10 @@
{
"name": "Human Library",
"short_name": "Human",
"icons": [{ "src": "../assets/icon.png", "sizes": "512x512", "type": "image/png", "purpose": "any maskable" }],
"start_url": "./index.html",
"scope": "/",
"display": "standalone",
"background_color": "#000000",
"theme_color": "#000000"
}