Skip to content

Commit

Permalink
Merge pull request #2 from skkuse/feature/hsm
Browse files Browse the repository at this point in the history
Feature/hsm
  • Loading branch information
Hans-0101 authored Dec 1, 2023
2 parents 2ce7773 + adfe7c7 commit d4b69e9
Show file tree
Hide file tree
Showing 15 changed files with 1,577 additions and 46 deletions.
986 changes: 972 additions & 14 deletions backend/package-lock.json

Large diffs are not rendered by default.

17 changes: 14 additions & 3 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,22 @@
"homepage": "https://github.com/Sunwoo0110/Express_Setup#readme",
"dependencies": {
"body-parser": "^1.20.0",
"child-process": "^1.0.2",
"cors": "^2.8.5",
"dotenv": "^16.0.1",
"express": "^4.18.1",
"mysql2": "^2.3.3"
"fs": "^0.0.1-security",
"ip": "^1.1.8",
"mysql": "^2.18.1",
"mysql2": "^2.3.3",
"node-fetch": "^2.7.0",
"os": "^0.1.2",
"path": "^0.12.7",
"swagger-jsdoc": "^6.2.8",
"swagger-ui-express": "^5.0.0"
},
"devDependencies": {
"nodemon": "^2.0.18"
"nodemon": "^2.0.18",
"swagger-autogen": "^2.23.7"
}
}
}
32 changes: 32 additions & 0 deletions backend/src/app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
const express = require("express");
const swaggerUi = require("swagger-ui-express");
const swaggereJsdoc = require("swagger-jsdoc");
const cors = require('cors');

class App {
constructor() {
Expand Down Expand Up @@ -44,6 +47,35 @@ class App {
res.status(500).send("Error Code 400");
});
}

setCors() {
// this.app.use(cors({orgin: 'http://localhost:3000'}));
}

// setSwagger() {
// const options = {
// definition: {
// openapi: "3.0.0",
// info: {
// title: "Swagger Express API for Team6",
// version: "0.1.0",
// description: "This is a sample server for Team6.",
// },
// servers: [
// {
// url: "http://localhost:8080",
// },
// ],
// },
// apis: ["./src/routes/*.js"],
// };
// const specs = swaggereJsdoc(options);
// this.app.use(
// "/api-docs",
// swaggerUi.serve,
// swaggerUi.setup(specs, { explorer: true })
// );
// }
}

module.exports = new App().app;
Empty file added backend/src/config/swagger.js
Empty file.
132 changes: 132 additions & 0 deletions backend/src/data/CI_aggregated.csv

Large diffs are not rendered by default.

81 changes: 81 additions & 0 deletions backend/src/data/TDP_cpu.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
index,in Watt,,,
model,TDP,n_cores,TDP_per_core,source
A8-7680,45,4,11.3,https://www.techpowerup.com/cpu-specs/
A9-9425 SoC,15,2,7.5,https://www.techpowerup.com/cpu-specs/
AMD 7552,200,48,4.2,https://www.amd.com/system/files/documents/AMD-EPYC-7002-Series-Datasheet.pdf
AMD EPYC 7251,120,8,15.0,https://www.amd.com/en/products/cpu/amd-epyc-7251
Any,,,12.0,
Athlon 3000G,35,2,17.5,https://www.techpowerup.com/cpu-specs/
Core 2 Quad Q6600,95,4,23.8,https://www.techpowerup.com/cpu-specs/
Core i3-10100,65,4,16.3,https://www.techpowerup.com/cpu-specs/
Core i3-10300,62,4,15.5,https://www.techpowerup.com/cpu-specs/
Core i3-10320,91,4,22.8,https://www.techpowerup.com/cpu-specs/
Core i3-10350K,91,4,22.8,https://www.techpowerup.com/cpu-specs/
Core i3-9100,65,4,16.3,https://www.techpowerup.com/cpu-specs/
Core i3-9100F,65,4,16.3,https://www.techpowerup.com/cpu-specs/
Core i5-10400,65,6,10.8,https://www.techpowerup.com/cpu-specs/
Core i5-10400F,65,6,10.8,https://www.techpowerup.com/cpu-specs/
Core i5-10500,65,6,10.8,https://www.techpowerup.com/cpu-specs/
Core i5-10600,65,6,10.8,https://www.techpowerup.com/cpu-specs/
Core i5-10600K,95,6,15.8,https://www.techpowerup.com/cpu-specs/
Core i5-3570K,77,4,19.3,https://www.techpowerup.com/cpu-specs/
Core i5-4460,84,4,21.0,https://ark.intel.com/content/www/us/en/ark/products/80817/intel-core-i5-4460-processor-6m-cache-up-to-3-40-ghz.html
Core i5-9400,65,6,10.8,https://www.techpowerup.com/cpu-specs/
Core i5-9400F,65,6,10.8,https://www.techpowerup.com/cpu-specs/
Core i5-9600KF,95,6,15.8,https://www.techpowerup.com/cpu-specs/
Core i7-10700,65,8,8.1,https://www.techpowerup.com/cpu-specs/
Core i7-10700K,125,8,15.6,https://www.techpowerup.com/cpu-specs/
Core i7-4930K,130,6,21.7,https://www.techpowerup.com/cpu-specs/
Core i7-6700K,95,4,23.8,https://www.techpowerup.com/cpu-specs/
Core i7-8700K,95,6,15.8,https://www.techpowerup.com/cpu-specs/
Core i7-9700F,65,8,8.1,https://www.techpowerup.com/cpu-specs/
Core i7-9700K,95,8,11.9,https://www.techpowerup.com/cpu-specs/
Core i9-10900K,125,10,12.5,https://www.techpowerup.com/cpu-specs/
Core i9-10900KF,105,10,10.5,https://www.techpowerup.com/cpu-specs/
Core i9-10900XE,165,10,16.5,https://www.techpowerup.com/cpu-specs/
Core i9-10920XE,165,12,13.8,https://www.techpowerup.com/cpu-specs/
Core i9-9900K,95,8,11.9,https://www.techpowerup.com/cpu-specs/
FX-6300,95,6,15.8,https://www.techpowerup.com/cpu-specs/
FX-8350,125,8,15.6,https://www.techpowerup.com/cpu-specs/
Ryzen 3 2200G,65,4,16.3,https://www.techpowerup.com/cpu-specs/
Ryzen 3 3200G,65,4,16.3,https://www.techpowerup.com/cpu-specs/
Ryzen 3 3200U,15,2,7.5,https://www.techpowerup.com/cpu-specs/
Ryzen 5 1600,65,6,10.8,https://www.techpowerup.com/cpu-specs/
Ryzen 5 2600,65,6,10.8,https://www.techpowerup.com/cpu-specs/
Ryzen 5 3400G,65,4,16.3,https://www.techpowerup.com/cpu-specs/
Ryzen 5 3500U,15,4,3.8,https://www.techpowerup.com/cpu-specs/
Ryzen 5 3600,65,6,10.8,https://www.techpowerup.com/cpu-specs/
Ryzen 5 3600X,95,6,15.8,https://www.techpowerup.com/cpu-specs/
Ryzen 7 2700X,105,8,13.1,https://www.techpowerup.com/cpu-specs/
Ryzen 7 3700X,65,8,8.1,https://www.techpowerup.com/cpu-specs/
Ryzen 7 3800X,105,8,13.1,https://www.techpowerup.com/cpu-specs/
Ryzen 9 3900X,125,12,10.4,https://www.techpowerup.com/cpu-specs/
Ryzen 9 3950X,105,16,6.6,https://www.techpowerup.com/cpu-specs/
Ryzen Threadripper 2990WX,250,32,7.8,https://www.techpowerup.com/cpu-specs/
Ryzen Threadripper 3990X,280,64,4.4,https://www.techpowerup.com/cpu-specs/
Xeon E5-2660 v3,105,10,10.5,https://ark.intel.com/content/www/us/en/ark/products/81706/intel-xeon-processor-e5-2660-v3-25m-cache-2-60-ghz.html
Xeon E5-2665,115,8,14.4,https://ark.intel.com/content/www/us/en/ark/products/64597/intel-xeon-processor-e5-2665-20m-cache-2-40-ghz-8-00-gt-s-intel-qpi.html
Xeon E5-2670,115,8,14.4,https://ark.intel.com/content/www/us/en/ark/products/64595/intel-xeon-processor-e5-2670-20m-cache-2-60-ghz-8-00-gt-s-intel-qpi.html
Xeon E5-2670 v2,115,10,11.5,https://ark.intel.com/content/www/us/en/ark/products/75275/intel-xeon-processor-e5-2670-v2-25m-cache-2-50-ghz.html
Xeon E5-2680 v3,120,12,10.0,https://www.intel.co.uk/content/www/uk/en/products/processors/xeon/e5-processors/e5-2680-v3.html
Xeon E5-2683 v4,120,16,7.5,https://www.intel.co.uk/content/www/uk/en/products/processors/xeon/e5-processors/e5-2683-v4.html
Xeon E5-2690 v2,130,10,13.0,https://ark.intel.com/content/www/us/en/ark/products/75279/intel-xeon-processor-e5-2690-v2-25m-cache-3-00-ghz.html
Xeon E5-2690 v3,135,12,11.3,https://ark.intel.com/content/www/us/en/ark/products/81713/intel-xeon-processor-e5-2690-v3-30m-cache-2-60-ghz.html
Xeon E5-2695 v4,120,18,6.7,https://ark.intel.com/content/www/us/en/ark/products/91316/intel-xeon-processor-e5-2695-v4-45m-cache-2-10-ghz.html
Xeon E5-2697 v4,145,18,8.1,https://ark.intel.com/content/www/us/en/ark/products/91755/intel-xeon-processor-e5-2697-v4-45m-cache-2-30-ghz.html
Xeon E5-2699 v3,145,18,8.1,https://ark.intel.com/content/www/us/en/ark/products/81061/intel-xeon-processor-e5-2699-v3-45m-cache-2-30-ghz.html
Xeon E5-2699 v4,145,22,6.6,https://ark.intel.com/content/www/us/en/ark/products/91317/intel-xeon-processor-e5-2699-v4-55m-cache-2-20-ghz.html
Xeon E5-4610 v4,105,10,10.5,https://ark.intel.com/content/www/us/en/ark/products/93812/intel-xeon-processor-e5-4610-v4-25m-cache-1-80-ghz.html
Xeon E5-4620,95,8,11.9,https://ark.intel.com/content/www/us/en/ark/products/64607/intel-xeon-processor-e5-4620-16m-cache-2-20-ghz-7-20-gt-s-intel-qpi.html
Xeon E5-4650L,115,8,14.4,https://ark.intel.com/content/www/us/en/ark/products/64606/intel-xeon-processor-e5-4650l-20m-cache-2-60-ghz-8-00-gt-s-intel-qpi.html
Xeon E7-8867 v3,165,16,10.3,https://ark.intel.com/content/www/us/en/ark/products/84681/intel-xeon-processor-e7-8867-v3-45m-cache-2-50-ghz.html
Xeon E7-8880 v4,150,22,6.8,https://www.intel.co.uk/content/www/uk/en/products/processors/xeon/e7-processors/e7-8880-v4.html
Xeon Gold 6142,150,16,9.4,https://ark.intel.com/content/www/us/en/ark/products/120487/intel-xeon-gold-6142-processor-22m-cache-2-60-ghz.html
Xeon Gold 6148,150,20,7.5,https://ark.intel.com/content/www/us/en/ark/products/120489/intel-xeon-gold-6148-processor-27-5m-cache-2-40-ghz.html
Xeon Gold 6248,150,20,7.5,https://ark.intel.com/content/www/us/en/ark/products/192446/intel-xeon-gold-6248-processor-27-5m-cache-2-50-ghz.html
Xeon Gold 6252,150,24,6.3,https://ark.intel.com/content/www/us/en/ark/products/192447/intel-xeon-gold-6252-processor-35-75m-cache-2-10-ghz.html
Xeon L5640 ,60,6,10.0,https://ark.intel.com/content/www/us/en/ark/products/47926/intel-xeon-processor-l5640-12m-cache-2-26-ghz-5-86-gt-s-intel-qpi.html
Xeon Phi 5110P,225,60,3.8,https://ark.intel.com/content/www/us/en/ark/products/71992/intel-xeon-phi-coprocessor-5110p-8gb-1-053-ghz-60-core.html
Xeon Platinum 9282,400,56,7.1,https://www.techpowerup.com/cpu-specs/
Xeon X3430,95,4,23.8,https://ark.intel.com/content/www/us/en/ark/products/42927/intel-xeon-processor-x3430-8m-cache-2-40-ghz.html
Xeon X5660,95,6,15.8,https://ark.intel.com/content/www/us/en/ark/products/47921/intel-xeon-processor-x5660-12m-cache-2-80-ghz-6-40-gt-s-intel-qpi.html
6 changes: 6 additions & 0 deletions backend/src/data/defaults_PUE.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
index,>1,
provider,PUE,source
Unknown,1.67,2019 https://journal.uptimeinstitute.com/is-pue-actually-going-up/
gcp,1.11,https://www.google.co.uk/about/datacenters/efficiency/
aws,1.2,https://aws.amazon.com/about-aws/sustainability/
azure,1.125,but only for new datacentres https://azure.microsoft.com/en-gb/global-infrastructure/
Loading

0 comments on commit d4b69e9

Please sign in to comment.