News for hackers. Stuff that matters.
Re:Run JavaScript on Cloudflare with Workers by trevyn on Tuesday March 13, 2018 @10:14AM (#16576239)
>all done in 50ms of compute time for resizing I would be doubtful

I don’t know the details of your environment or timing precision, but I’m quite sure that a single core on a modern server CPU can resize and JPEG compress more than 20 reasonably-sized images per second. :-)

Re:Run JavaScript on Cloudflare with Workers by ht85 on Tuesday March 13, 2018 @10:51AM (#16576556)
I benchmarked various programs to resize images a year ago. There was a JS package with native bindings to GD, a go program, and a pure JS implementation. Both go and GD were an order of magnitude faster at scaling down and converting PNG to JPG.
Re:Run JavaScript on Cloudflare with Workers by sitepodmatt on Tuesday March 13, 2018 @10:25AM (#16576328)
You're probably right, presumably the 50ms of compute time, is that of reasonable 1.6ghz xeon+, and compute time is accounted as actual real compute time - not inclusive of waiting on some virtual CPU to be multiplexed onto a real core.