2022-12-31 03:24:00 +08:00
|
|
|
# Copyright (c) 2022 Meta
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
config TEST_LIB_HASH_MAP_MAX_ENTRIES
|
|
|
|
int "Maximum number of Hashmap entries"
|
|
|
|
default 40
|
|
|
|
help
|
|
|
|
When benchmarking the performance of the Hashmap, it helps to be able
|
|
|
|
to vary the number of entries to insert or remove from the hash table
|
|
|
|
in a convenient way. This option translates to MANY in the test sources.
|
|
|
|
|
|
|
|
CONFIG_TEST_LIB_HASH_MAP_MAX_ENTRIES
|
|
|
|
|
|
|
|
Of course, using realloc(), we are limited by the amount of available
|
|
|
|
heap memory. For test scenarios using the Minimal C library, the heap
|
|
|
|
size is controlled via
|
|
|
|
|
2023-03-30 07:31:20 +08:00
|
|
|
CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE
|
2022-12-31 03:24:00 +08:00
|
|
|
|
2024-03-14 22:22:27 +08:00
|
|
|
For native_sim, the number of entries can be configured
|
2022-12-31 03:24:00 +08:00
|
|
|
independently of the arena size since the native libc is used.
|
|
|
|
|
|
|
|
source "Kconfig.zephyr"
|