Add memory measures to benchmarks.

3 jobs from master in 4 minutes 26 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Build
passed #3846
build_cmake

01:04

 
  Test
passed #3847
run_tests

01:07

 
  Sanitizer
passed #3848
run_address_sanitizer

02:14