1#!/bin/bash
2# SPDX-License-Identifier: GPL-2.0
3
4source ./benchs/run_common.sh
5
6set -eufo pipefail
7
8header "Hashmap Control"
9for i in 10 1000 10000 100000 4194304; do
10subtitle "num keys: $i"
11	summarize_local_storage "hashmap (control) sequential    get: "\
12		"$(./bench --nr_maps 1 --hashmap_nr_keys_used=$i local-storage-cache-hashmap-control)"
13	printf "\n"
14done
15
16header "Local Storage"
17for i in 1 10 16 17 24 32 100 1000; do
18subtitle "num_maps: $i"
19	summarize_local_storage "local_storage cache sequential  get: "\
20		"$(./bench --nr_maps $i local-storage-cache-seq-get)"
21	summarize_local_storage "local_storage cache interleaved get: "\
22		"$(./bench --nr_maps $i local-storage-cache-int-get)"
23	printf "\n"
24done
25