Testing scrolling performance. Which is the best css shadow when applied on sticky headers in a scroll container

Inspired by this airbnb article

Tested on Chrome

Test Result

Table has 200 rows, so there's 200 els that have shadows

box-shadow

Frames: 20

Time: 334ms

Rendering: 37ms

Painting: 23ms

Update 8/14/2021, 8:25:24 PM

This time I clicked the smooth scroll button ten times in a row

2021-08-14_20-21_1

linear-gradient

Frames: 20

Time: 325ms

Rendering: 17ms

Painting: 20ms

Update 8/14/2021, 8:25:24 PM

This time I clicked the smooth scroll button ten times in a row

2021-08-14_20-21

blur

Frames 20

Time: 329ms

Rendering: 46ms

Painting: 21ms

drop-shadow

Frames 20

Time: 335ms

Rendering: 41ms

Painting: 20ms