XFusion API v1.3.0
载入中...
搜索中...
未找到
test_benchmark.c 文件参考
#include "xf_utils.h"
#include "xf_sys.h"
#include "xf_vfs.h"
#include "xf_vfs_littlefs.h"
test_benchmark.c 的引用(Include)关系图:

浏览源代码.

宏定义

#define TAG   "test_benchmark"
 

函数

static int get_file_size (const char *fname)
 
static void read_write_test_1 (const char *mount_pt, uint32_t iter)
 Writes and deletes files
 
void test_benchmark (void)
 

详细描述

作者
catcatBlue (catca.nosp@m.tblu.nosp@m.e@qq..nosp@m.com)
版本
1.0
日期
2025-01-16

在文件 test_benchmark.c 中定义.

宏定义说明

◆ TAG

#define TAG   "test_benchmark"

Copyright 2020 Brian Pugh

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Copyright (c) 2025, CorAL. This file has been modified by CorAL under the terms of the Apache License, Version 2.0.

Modifications:

  • Modified by CorAL on 2025-01-15:
    1. modified the naming to prevent conflict with the original project.
    2. removed esp-idf related dependencies.

在文件 test_benchmark.c41 行定义.

函数说明

◆ get_file_size()

static int get_file_size ( const char *  fname)
static

在文件 test_benchmark.c108 行定义.

◆ read_write_test_1()

static void read_write_test_1 ( const char *  mount_pt,
uint32_t  iter 
)
static

Writes and deletes files

参数
[in]mount_pt
[in]iterNumber of files to write

在文件 test_benchmark.c122 行定义.

◆ test_benchmark()

void test_benchmark ( void  )

在文件 test_benchmark.c62 行定义.