←back to thread

168 points ksec | 1 comments | | HN request time: 0.208s | source
Show context
drumpkid ◴[] No.43549947[source]
I’m impressed by this project’s progress. It’s more than just a render library. Although they claim it’s 12x faster than ERB, but I couldn’t find their benchmark.
replies(1): >>43550166 #
fidrelity ◴[] No.43550166[source]
I believe it's referencing this: https://github.com/KonnorRogers/view-layer-benchmarks
replies(2): >>43550721 #>>43554054 #
byroot ◴[] No.43550721[source]
Can't believe this still has to be debunked. No Phlex certainly isn't 12x faster than ERB. It's noticeably slower than ERB, e.g.: https://github.com/KonnorRogers/view-layer-benchmarks/commit...

In some extreme scenarios with tons of very small partials, it can win against Action View because the Action View partial lookup is significant overhead.

replies(2): >>43551073 #>>43551432 #
tenderlove ◴[] No.43551073[source]
It says on the website it's 12x faster so it must be true!

https://rubyui.com

replies(1): >>43551142 #
1. joeldrapper ◴[] No.43551142[source]
It probably is (or at least was) faster than ActionView if you use lots of small partials, but it is not faster than ERB since it is not compiled. It generates HTML at about 1.6gbps per core on my laptop so probably fast enough for most things.