项目作者: akhabali

项目描述 :
benchmark of read and fread for c lang
高级语言: C
项目地址: git://github.com/akhabali/c-read-fread-benchmark.git
创建时间: 2020-02-08T23:34:53Z
项目社区:https://github.com/akhabali/c-read-fread-benchmark

开源协议:Apache License 2.0

下载


Simple benchmark of read and fread

This is a simple benchmark to compare the performance of read function and fread function from c lang.

Benchmark Result

As expected fread (buffred read) is more effecient than read specialy for large files.

  1. testRead 0.056000
  2. testFread 0.041000
  3. testFreadWithBuffer 0.033000
  4. Process returned 0 (0x0) execution time : 0.144 s
  5. Press any key to continue.