Sample code for comparing sync versus async performance.