Crystal 0.24 版的 crystal 编译速度又降下来了

gaicitadie · March 26, 2018 · Last by isaced replied at September 04, 2018 · 6783 hits

以前 0.1x 版的时候,编译一个 hello world,需要 0.5 秒左右,比 golang 稍微慢一点,刚才升级到了 0.24.1 版,编译 hello world 需要 1 秒多了,跟 golang 相比毫无竞争力。编译器真是个拼爹的东西

golang 语法简单吧,crystal 好处就是写起来爽

time crystal build x.cr
crystal build x.cr  1.83s user 0.68s system 158% cpu 1.582 total
➜  crystal version     
Crystal 0.26.0 (2018-08-17)

LLVM: 6.0.1
Default target: x86_64-apple-macosx

➜  time crystal build helloworld.cr

crystal build helloworld.cr  0.65s user 0.19s system 126% cpu 0.661 total
You need to Sign in before reply, if you don't have an account, please Sign up first.