diff options
| author | Elliott Hughes <enh@google.com> | 2017-08-23 09:52:50 -0700 |
|---|---|---|
| committer | Elliott Hughes <enh@google.com> | 2017-08-23 14:03:43 -0700 |
| commit | 938bece9e0c5d7d67d137dbfbba1e2d244c95b35 (patch) | |
| tree | cb655541a4b96f3af5c854a80793af05833235b5 /libc/malloc_hooks/tests/malloc_hooks_tests.cpp | |
| parent | 57e07a150e536f79d78f8203b0c807087b5c854b (diff) | |
Benchmark fgetln(3) and getline(3) as well as fgets(3).
On Pixel 2016, there's about 1us overhead for getline versus
fgets. fgetln(3) is worse still because of the intermediate buffering
(though it might actually be better if you were only reading one line
whose length was less than BUFSIZ).
Also use somewhat realistic input for these benchmarks: /dev/zero makes
no sense at all.
Bug: N/A
Test: ran benchmarks
Change-Id: I4a319825a37ac3849014c4c6b31523c1e200c641
Diffstat (limited to 'libc/malloc_hooks/tests/malloc_hooks_tests.cpp')
0 files changed, 0 insertions, 0 deletions
