Apple’s two-year-old iPhone 6s beats Samsung’s Galaxy S8 in speed and memory management shootout