Benchmark results
Benchmark results
Posted Mar 21, 2024 17:35 UTC (Thu) by daroc (editor, #160859)In reply to: Benchmark results by sdumitriu
Parent article: Cranelift code generation comes to Rust
Unfortunately, there is no direct comparison between LLVM's optimization passes and Cranelift's ISLE files. By analogy, you might consider comparing the number of source files in a project. The number of source files does not actually tell you anything absolute about the complexity of a project, because a program could throw everything in one large source file or split it out into many small ones. But it is still a useful measure of complexity, because most reasonable programmers tend not to go to either of those extremes. Likewise, LLVM optimization passes and ISLE files are not equivalent, but they are the unit of organization which the developers of each project have chosen.
If you are curious, you can read Cranelift's optimizations here[0], and judge for yourself how similar one of their ISLE files is to one of LLVM's optimization passes.
[0]: https://github.com/bytecodealliance/wasmtime/tree/main/cr...
