13 KiB
title | date | tags | |
---|---|---|---|
Compile Stress Test | 2019-10-03 |
|
This is an experiment in blogging. I am going to be putting my tweets and select replies one after another without commentary.
shitty synthetic benchmark idea: how long it takes for a compiler to handle a main function with 1.2 million instances of printf("hello, world!\n") or similar
โ Cadey Ratio ๐ (@theprincessxena) October 2, 2019
fun fact, you need an AWS x1.16xlarge instance to compile 1.2 million lines of rust source code
โ Cadey Ratio ๐ (@theprincessxena) October 2, 2019
oh god that might not be enough
โ Cadey Ratio ๐ (@theprincessxena) October 2, 2019
oh god, is that what X1 is for???
โ snake enchantress (@AstraLuma) October 2, 2019
My wallet just cringed.
They have been now https://t.co/o5vMKx583C
โ Cadey Ratio ๐ (@theprincessxena) October 2, 2019
โ Cadey Ratio ๐ (@theprincessxena) October 2, 2019
TFW rust uses so much ram an x1.16xlarge can't compile hello world
โ Cadey Ratio ๐ (@theprincessxena) October 2, 2019
Let's go x1e.32xlarge!
โ Cadey Ratio ๐ (@theprincessxena) October 2, 2019
hello world
โ Cadey Ratio ๐ (@theprincessxena) October 2, 2019
Code generators
โ Cadey Ratio ๐ (@theprincessxena) October 2, 2019
โ Cadey Ratio ๐ (@theprincessxena) October 2, 2019
Rust can't match V for compile performance
โ Cadey Ratio ๐ (@theprincessxena) October 2, 2019
Finally can run two electron apps.
โ Pradeep Gowda ๐ฎ๐ณ๐บ๐ธ (@btbytes) October 2, 2019
โ Cadey Ratio ๐ (@theprincessxena) October 2, 2019
It stopped growing at 2.66 TB of ram!
โ Cadey Ratio ๐ (@theprincessxena) October 2, 2019
overheard: "im paying this computer minimum wage to compile this god damn rust program"
โ Cadey Ratio ๐ (@theprincessxena) October 2, 2019
The guy who's paying for the instance in slack said it
โ Cadey Ratio ๐ (@theprincessxena) October 2, 2019
you magnificent cursed unholy monster
โ Astrid ๐ฆ (@floofstrid) October 2, 2019
Just a simple rust program, only 9.88090622052428380708467040696522138519972064500917... ร 10^361235 possible conditions
โ Cadey Ratio ๐ (@theprincessxena) October 2, 2019
oh god it's still going pic.twitter.com/SIZJBFTDHN
โ Cadey Ratio ๐ (@theprincessxena) October 3, 2019
Normal couples: watch tv together or something
โ Cadey Ratio ๐ (@theprincessxena) October 3, 2019
me and my fiancรฉ: watch someone try to compile a 1.2 million line of code rust function over slack
I guess #rust isn't production-ready, it can't compile hello world.
โ Cadey Ratio ๐ (@theprincessxena) October 3, 2019
no swap used though pic.twitter.com/2Qb0pXqIme
โ Cadey Ratio ๐ (@theprincessxena) October 3, 2019
what the fuck is it doing pic.twitter.com/2CuVKhUAsF
โ Cadey Ratio ๐ (@theprincessxena) October 3, 2019
SURVEY SAYS:
โ Cadey Ratio ๐ (@theprincessxena) October 3, 2019
memcpy()!
01:01 (Cadey) dalias: this is basically 1.2 million instances of `printf("hello, world!\n");` in void main
โ Cadey Ratio ๐ (@theprincessxena) October 3, 2019
01:01 (dalias) wtf
AWS x1e.32large
โ Cadey Ratio ๐ (@theprincessxena) October 3, 2019
perf
โ Cadey Ratio ๐ (@theprincessxena) October 3, 2019
It's down to 1.36 TB now
โ Cadey Ratio ๐ (@theprincessxena) October 3, 2019
"back to 1.47T ram"
โ Cadey Ratio ๐ (@theprincessxena) October 3, 2019
"oh no"
"1.49"
"oh it stopped"
"it's definitely still in mir dataflow"
The memory is increasing
โ Cadey Ratio ๐ (@theprincessxena) October 3, 2019
"what stage is that?"
โ Jaden Weiss (@CompuJad) October 3, 2019
"denial?"
Lol it ran out of memory!
โ Cadey Ratio ๐ (@theprincessxena) October 3, 2019
4 TB of ram isn't enough to build hello world in #rust!
Meanwhile the same thing in Go took 5 minutes and I was able to run it on my desktop instead of having to rent a server from AWS.