Re:Artichoke is a Ruby made with Rust that compiles to WebAs...
by jtstanley on Friday January 01, 2021 @01:56PM
(#25605640)
The talk at rubyconf mentioned that `string.scan` was 100% faster due to specialized string implementations in the Rust backend. I wonder if there are any performance gains from the actual runtime rather than from std optimizations?
[ Parent
| on HN ]
Re:Artichoke is a Ruby made with Rust that compiles to WebAs...
by spullara on Friday January 01, 2021 @04:10PM
(#25607177)
100% faster? Does that mean twice as fast or is string.scan now take 0 time?
Re:Artichoke is a Ruby made with Rust that compiles to WebAs...
by ibraheemdev on Friday January 01, 2021 @04:19PM
(#25607287)
100% faster means speed is increased by 100%, i.e. double the speed or half the time.
MRI took 89ms/iter to scan for a regex pattern over 6.8MB of text, while Artichoke took 48ms/iter [0]
Re:Artichoke is a Ruby made with Rust that compiles to WebAs...
by jonnytran on Saturday January 02, 2021 @03:14AM
(#25611247)
That is misleading, in my opinion. "100% faster" implies that runtime for a given workload is reduced by 100%, taking zero time. I think what you mean to say is either that it's 50% faster or that throughput is increased by 100%.
Re:Artichoke is a Ruby made with Rust that compiles to WebAs...
by Tistron on Saturday January 02, 2021 @11:28AM
(#25613884)
Surely faster means higher speed, and speed is something per time unit, e.g. miles per hour, or number of scans per second.
At least for me 100% faster does not mean the same as 100% less time was needed.