现在的位置: 首页 > 综合 > 正文

CTDP linux 程序员手册 C和C++编程(6)更多的Linux POSIX测试

2014年01月15日 ⁄ 综合 ⁄ 共 205字 ⁄ 字号 评论关闭

一个程序在一台机器上运行将产生不同的性能,这取决于安装时的选项和内核的编译方式。为了测试机器运行时的POSIX 性能,可使用下列过程:

  1. long sysconf(int name);
  2. long pathconf(const char *pathname, int name);
  3. long fpathconf(int fd, int name);

参考 sysconf(3), pathconf(3), fpathconf(3) 手册页的相关信息。 

抱歉!评论已关闭.