54432297创建于 4月20日历史提交
#
# 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

config RAMSPEED_MONOTONIC_TIME
	bool "Benchmark ramspeed using clock gettime"
	default n
	---help---
		When you turn on this option, your test loop will go from 10000 -> 1000 times
		Please consider the following scenario:
		1. By default (PERFTIME) will have a relatively high precision, but this also
			tends to cause failure in getting values on some smaller bytes, so reducing
			the precision with this option can make it easier to get data values.
		2. whether to compare data with the content of other tools (using CLOCK
			GETTIME method), if so, it is recommended to turn on, so as to ensure that
			the data precision of both consistent.

endif