xesite/blog/compile-stress-test-2019-10...

13 KiB
Raw Blame History

title date tags
Compile Stress Test 2019-10-03
rust

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???

My wallet just cringed.

โ€” snake enchantress (@AstraLuma) October 2, 2019

They have been now https://t.co/o5vMKx583C

โ€” Cadey Ratio ๐ŸŒ (@theprincessxena) October 2, 2019

pic.twitter.com/le8IFrFbQT

โ€” 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

pic.twitter.com/BwLhk9PIb3

โ€” 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

pic.twitter.com/Ez0t5BLT9i

โ€” 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

me and my fiancรฉ: watch someone try to compile a 1.2 million line of code rust function over slack

โ€” Cadey Ratio ๐ŸŒ (@theprincessxena) October 3, 2019

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:

memcpy()!

โ€” Cadey Ratio ๐ŸŒ (@theprincessxena) October 3, 2019

01:01 (Cadey) dalias: this is basically 1.2 million instances of `printf("hello, world!\n");` in void main
01:01 (dalias) wtf

โ€” Cadey Ratio ๐ŸŒ (@theprincessxena) October 3, 2019

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"
"oh no"
"1.49"
"oh it stopped"
"it's definitely still in mir dataflow"

โ€” Cadey Ratio ๐ŸŒ (@theprincessxena) October 3, 2019

The memory is increasing

โ€” Cadey Ratio ๐ŸŒ (@theprincessxena) October 3, 2019

"what stage is that?"
"denial?"

โ€” Jaden Weiss (@CompuJad) October 3, 2019

Lol it ran out of memory!

4 TB of ram isn't enough to build hello world in #rust!

โ€” Cadey Ratio ๐ŸŒ (@theprincessxena) October 3, 2019

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.