Comment by jswny
2 months ago
I wish this was faster, in my tests it’s about 200ms startup consistently on my M4 MacBook. Otherwise very cool
2 months ago
I wish this was faster, in my tests it’s about 200ms startup consistently on my M4 MacBook. Otherwise very cool
Interesting! That seems unexpected, for a minimal hello-world program I'm averaging 14ms after the first execution:
```
$ echo 'fn main() { println!("hello, world!") }' > file.rs; hyperfine --warmup 1 'cargo +nightly -Zscript file.rs'
Benchmark 1: cargo +nightly -Zscript file.rs
```
Ah I think it’s because I was testing with an external library in the top level TOML metadata