nuttx-apps/benchmarks/ramspeed/Kconfig
chenrun1 e04782816f ramspeed:Add log printing & improve test accuracy & optional test cases
1.Add more print logs

ramspeed -w 0x61ba15c0 -s 524288 -n 10000 -i
RAM Speed: Write address: 0x0x61ba15c0
RAM Speed: Read address: 0x0
RAM Speed: Size: 524288 bytes
RAM Speed: Value: 0x00
RAM Speed: Repeat number: 10000
RAM Speed: Interrupts disabled: true

2.Improve test accuracy, now print in double type in us time unit

______Perform 32 Bytes access______
RAM Speed: system memset():      Rate = 625000.000 KB/s [cost: 0.500 ms]
RAM Speed: internal memset():    Rate = 240384.615 KB/s [cost: 1.300 ms]

3. Optional test item, if we do not pass in the src address, only memset will be executed

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2024-08-08 09:51:55 +08:00

31 lines
676 B
Plaintext

#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#
config BENCHMARK_RAMSPEED
tristate "RAM Speed Test"
default n
depends on LIBC_FLOATINGPOINT
---help---
Enable a simple RAM speed test.
if BENCHMARK_RAMSPEED
config BENCHMARK_RAMSPEED_PROGNAME
string "Program name"
default "ramspeed"
---help---
This is the name of the program that will be used when the NSH ELF
program is installed.
config BENCHMARK_RAMSPEED_PRIORITY
int "RAM speed test task priority"
default 100
config BENCHMARK_RAMSPEED_STACKSIZE
int "RAM speed test stack size"
default DEFAULT_TASK_STACKSIZE
endif