-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathoof.js
More file actions
77 lines (67 loc) · 2.13 KB
/
oof.js
File metadata and controls
77 lines (67 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
"use strict";
(() => {
const logger = require("winston");
const fs = require("fs");
module.exports.oof = () => {
return _oof();
}
const workloads = [
"Llama 3",
"Stable Diffusion XL",
"4K 60fps video rendering",
"Cyberpunk 2077 with Ray tracing ultra",
"cycles renderer in Blender",
"Cities: Skylines 2",
"running 700 VMs",
"mining shitcoins",
"Llama 3",
"running 700 VMs",
];
const machines = [
"Amiga 500",
"Commodore 64",
"Atari ST",
"Amiga CD32",
"Nintendo 64",
"25Mhz Intel 386",
"Thinkpad X220",
"Raspberry Pi 4",
"PPC G5",
"GeForce 2 MX",
"toaster",
"potato",
"25Mhz Intel 386",
"Thinkpad X220",
"Raspberry Pi 4",
"PPC G5",
];
const sentences = [
"Oof, this MACHINE is not handling WORKLOAD all that well",
"Oof, WORKLOAD is struggling on my MACHINE",
"Oof, WORKLOAD on a MACHINE is NOT ideal",
"Oof, I'm surprised WORKLOAD on the MACHINE isn't better",
"Oof, the MACHINE is starting to smoke from WORKLOAD",
"Oof, at least the WORKLOAD is causing the MACHINE to keep to room a bit warmer",
"Oof, WORKLOAD - 0 fps, 0/10 would not run on MACHINE again",
];
function _oof() {
Math.random();
Math.random();
const w = Math.floor(Math.random() * workloads.length);
const workload = workloads[w];
const m = Math.floor(Math.random() * machines.length)
const machine = machines[m];
const s = Math.floor(Math.random() * sentences.length);
const sentence = sentences[s];
logger.info(`w: ${w} m: ${m} s: ${s}`);
const data = `${w}, ${m}, ${s}\n`;
fs.appendFileSync("randomout.txt", data);
const ocnt = Math.floor(Math.random() * 8) + 2;
const ostr = "o".repeat(ocnt);
const oofstr = `O${ostr}f`;
return sentence
.replace("MACHINE", machine)
.replace("WORKLOAD", workload)
.replace("Oof", oofstr);
}
})();