r/Compilers • u/Retired-69 • Aug 18 '26
Is 76 μs acceptable compilation performance for a almost prod ready ELF64 compiler?
Folks! Is this acceptable performance for a compiler? it do lexing, parsing, type checking, optimziing and codegen . It simply emits the ELF64 executable directly and runs it without an external linker/object-file pipeline.
--- CODEGEN RESULTS ---
Total Machine Bytes Emitted: 47 bytes
Compilation Speed: 76000 ns
Runnable ELF64 Machine Code Executable Written: boo
0
Upvotes
3
u/Professional_Cell44 Aug 18 '26
well, it depends on:
- language spec: how complex your language is?
- source code(input): how big the souce code is? how complex is it?
and its only 47 bytes written, so i think it is quite tiny
1
u/MithrilHuman Aug 19 '26 edited Aug 19 '26
Programs, including compilers, can have slow start but perform well on large inputs. A program can perform well on small inputs but struggle with large ones. A microbenchmark is fine but real world applications are way larger than what you’re testing for. You should collect more data.
1
u/GoblinsGym Aug 28 '26
Sounds good. What do you do in the way of optimization / register selection ?
3
u/[deleted] Aug 18 '26
[removed] — view removed comment