Changes based on feedback

- fix erroneous pattern match
- rename stashAll to prepend
- configurable number of cycles in performance test