projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Sort #include lines
[folly.git]
/
folly
/
gen
/
test
/
FileBenchmark.cpp
diff --git
a/folly/gen/test/FileBenchmark.cpp
b/folly/gen/test/FileBenchmark.cpp
index ac10fd1809a9546b0aa282f3dc074d3ee94c96e9..74693c51ed536d47cd2769e95852437b06f17b3f 100644
(file)
--- a/
folly/gen/test/FileBenchmark.cpp
+++ b/
folly/gen/test/FileBenchmark.cpp
@@
-1,5
+1,5
@@
/*
/*
- * Copyright 201
4
Facebook, Inc.
+ * Copyright 201
7
Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-13,7
+13,9
@@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
#include <thread>
#include <thread>
+
#include <glog/logging.h>
#include <folly/Benchmark.h>
#include <glog/logging.h>
#include <folly/Benchmark.h>
@@
-37,8
+39,8
@@
BENCHMARK(ByLine_Pipes, iters) {
PCHECK(::write(wfd, &x, 1) == 1); // signal startup
FILE* f = fdopen(wfd, "w");
PCHECK(f);
PCHECK(::write(wfd, &x, 1) == 1); // signal startup
FILE* f = fdopen(wfd, "w");
PCHECK(f);
- for (
in
t i = 1; i <= iters; ++i) {
- fprintf(f, "%
d
\n", i);
+ for (
size_
t i = 1; i <= iters; ++i) {
+ fprintf(f, "%
zu
\n", i);
}
fclose(f);
});
}
fclose(f);
});