-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: finishing up the test, now for automation
- Loading branch information
1 parent
87c43e6
commit ab513a3
Showing
14 changed files
with
271 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
11.9883 MB | ||
52.8125 MB | ||
52.8125 MB | ||
52.8125 MB | ||
52.8125 MB | ||
52.8125 MB | ||
52.8125 MB | ||
52.8125 MB | ||
52.8125 MB | ||
48.5234 MB | ||
48.5234 MB | ||
48.5234 MB | ||
48.5234 MB | ||
54.6367 MB | ||
112.062 MB | ||
141.711 MB | ||
165.762 MB | ||
207.523 MB | ||
227.41 MB | ||
239.781 MB | ||
300.625 MB | ||
307.449 MB | ||
310.285 MB | ||
357.715 MB | ||
419.074 MB | ||
446.391 MB | ||
447.164 MB | ||
448.453 MB | ||
464.172 MB | ||
520.633 MB | ||
592.305 MB | ||
662.945 MB | ||
669.281 MB | ||
681.652 MB | ||
682.637 MB | ||
683.668 MB | ||
685.215 MB | ||
715.121 MB | ||
789.887 MB | ||
795.816 MB |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
kill -9 $(lsof -ti :42069) | ||
|
||
vmrss() { | ||
p=$1 | ||
while true; do sync; cat /proc/$p/status |grep VmRSS|grep -o '[0-9]\+'| awk '{print $1/1024 " MB"}'; sleep 1; done | ||
} | ||
|
||
if [ "$1" == "bun" ]; then | ||
echo "Running bun" | ||
bun --bun src/index.ts & | ||
else | ||
echo "Running node" | ||
node dist/index.js & | ||
fi | ||
pid=$! | ||
|
||
vmrss $pid | tee $2.mem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React from "react"; | ||
import _ from "lodash"; | ||
import redux from "redux"; | ||
import express from "express"; | ||
import bodyParser from "body-parser"; | ||
|
||
const app = express(); | ||
app.use(bodyParser.json()); | ||
app.use(bodyParser.text()); | ||
|
||
app.post('/', async (req, res) => { | ||
res.status(200).send(""); | ||
}); | ||
|
||
app.post('/setup', async (req, res) => { | ||
res.status(200).send(""); | ||
}); | ||
|
||
console.log(`${String(React)} -- ${_} -- ${String(redux)}`); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
ntheutnhoeuth,rc.uhnoeuhnoeuheuhnoeuhoneuhaseuhsaeudaoteidaeuhsathoeidaehusatdeitaseuhstaodeintaedutadoeitndaoesutdatoeidaseuhtasoeidtaeuhtasodeitaeuhtaosediaseduntasodeiaehusatodeintaseuhnaostdeitaeuhasedinaeuhnasteidtsaeuhtaseidnaoeshu2nateuntaheutnaheu | ||
ntheutnhoeuth,rc.uhnoeuhnoeuheuhnoeuhoneuhaseuhsaeudaoteidaeuhsathoeidaehusatdeitaseuhstaodeintaedutadoeitndaoesutdatoeidaseuhtasoeidtaeuhtasodeitaeuhtaosediaseduntasodeiaehusatodeintaseuhnaostdeitaeuhasedinaeuhnasteidtsaeuhtaseidnaoeshu2nateuntaheutnaheu | ||
ntheutnhoeuth,rc.uhnoeuhnoeuheuhnoeuhoneuhaseuhsaeudaoteidaeuhsathoeidaehusatdeitaseuhstaodeintaedutadoeitndaoesutdatoeidaseuhtasoeidtaeuhtasodeitaeuhtaosediaseduntasodeiaehusatodeintaseuhnaostdeitaeuhasedinaeuhnasteidtsaeuhtaseidnaoeshu2nateuntaheutnaheu | ||
ntheutnhoeuth,rc.uhnoeuhnoeuheuhnoeuhoneuhaseuhsaeudaoteidaeuhsathoeidaehusatdeitaseuhstaodeintaedutadoeitndaoesutdatoeidaseuhtasoeidtaeuhtasodeitaeuhtaosediaseduntasodeiaehusatodeintaseuhnaostdeitaeuhasedinaeuhnasteidtsaeuhtaseidnaoeshu2nateuntaheutnaheu | ||
ntheutnhoeuth,rc.uhnoeuhnoeuheuhnoeuhoneuhaseuhsaeudaoteidaeuhsathoeidaehusatdeitaseuhstaodeintaedutadoeitndaoesutdatoeidaseuhtasoeidtaeuhtasodeitaeuhtaosediaseduntasodeiaehusatodeintaseuhnaostdeitaeuhasedinaeuhnasteidtsaeuhtaseidnaoeshu2nateuntaheutnaheu | ||
ntheutnhoeuth,rc.uhnoeuhnoeuheuhnoeuhoneuhaseuhsaeudaoteidaeuhsathoeidaehusatdeitaseuhstaodeintaedutadoeitndaoesutdatoeidaseuhtasoeidtaeuhtasodeitaeuhtaosediaseduntasodeiaehusatodeintaseuhnaostdeitaeuhasedinaeuhnasteidtsaeuhtaseidnaoeshu2nateuntaheutnaheu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
notehuntoehuntoehuntoheuntoheutnh0.0.0.0ntoheuntoheuntoheuntoheuntoheuntoheuntoheunthoe | ||
notehuntoehuntoehuntoheuntoheutnh0.0.0.0ntoheuntoheuntoheuntoheuntoheuntoheuntoheunthoe | ||
notehuntoehuntoehuntoheuntoheutnh0.0.0.0ntoheuntoheuntoheuntoheuntoheuntoheuntoheunthoe | ||
notehuntoehuntoehuntoheuntoheutnh0.0.0.0ntoheuntoheuntoheuntoheuntoheuntoheuntoheunthoe | ||
notehuntoehuntoehuntoheuntoheutnh0.0.0.0ntoheuntoheuntoheuntoheuntoheuntoheuntoheunthoe | ||
notehuntoehuntoehuntoheuntoheutnh0.0.0.0ntoheuntoheuntoheuntoheuntoheuntoheuntoheunthoe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
async function requireModule(moduleName: string): Promise<string> { | ||
const m = require(moduleName); | ||
const out = String(m); | ||
delete require.cache[require.resolve(moduleName)]; | ||
|
||
return out; | ||
} | ||
|
||
export function run(req: Request) { | ||
return requireModule(req.body as any as string); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
|
||
function findTheFirstDigit(str: string) { | ||
return str.search(/\d/); | ||
} | ||
|
||
export function run(req: Request) { | ||
const data = req.body as any as string; | ||
return data.split("\n").map(findTheFirstDigit).reduce((acc, line) => acc + line, 0); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
function findTheFirstDigit(str: string) { | ||
return str.search(/\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b/); | ||
} | ||
|
||
export function run(req: Request) { | ||
const data = req.body as any as string; | ||
return data.split("\n").map(findTheFirstDigit).reduce((acc, line) => acc + line, 0); | ||
} | ||
|
||
|