== imaging-desaturate ==
'''Description.''' A ''kernel''. A 400 x 267 image is represented as an array where each pixel gets four values, representing the (R, G, B, Alpha) values. All values are in the range 0..255.
'''Key features.''' Almost all the benchmark's time is spent in this loop:
while (p--)
data[pix-=4] = data[pix1=pix+1] = data[pix2=pix+2] = (data[pix]*0.3 + data[pix1]*0.59 + data[pix2]*0.11);
It iterates through each pixel, setting the (R, G, B) values all to the same value, which is a function of the prior (R, G, B) values.
== json-stringify-tinderbox ==