芒果派MangoPi MQ Pro构建sqlite3并进行性能测试
-
HelloeWorld一下
得益于开发板运行armbian系统,具备了完整的开发环境,可以直接板上开发,避免了交叉编译的麻烦。
vi helloworld.c按i 进入输入模式输入以下内容

按esc
输入:进入命令模式
输入wq保存
编译
gcc helloworld.c -o helloworld运行./helloworld打印如下

数据库性能测试
下载代码
git clone https://github.com/sqlite/sqlite.git cd sqlite/配置
./configure构建
time make花了56分钟左右,对于这么大大量代码的构建还是可以接受的。
一般个人项目不会有这么大规模,板上构建完全没问题。

安装
sudo make install
编译
gcc test/speedtest1.c -o speedtest1 -lpthread -ldl -lsqlite3 ./speedtest1运行测试
./speedtest1
可以看到直接板上进行一般项目开发完全没问题,
sqlite3数据库性能测试表现也不错。 -
不错.
学习学习.
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号