-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/50556/
-----------------------------------------------------------
(Updated 十月 6, 2016, 1:44 a.m.)
Review request for mesos, Benjamin Mahler, Joris Van Remoortere, Klaus Ma, and
Jiang Yan Xu.
Bugs: MESOS-5700
https://issues.apache.org/jira/browse/MESOS-5700
Repository: mesos
Description
-------
This benchmark test is using nonRevocable, revocable, unreserved
and reserved API benchmark test to test the API of filter for
Resources.
Diffs (updated)
-----
src/tests/resources_tests.cpp 3e493007d6d1d8194d07035aaa1cde28dedf2b5a
Diff: https://reviews.apache.org/r/50556/diff/
Testing (updated)
-------
make
make check
```
./bin/mesos-tests.sh --benchmark
--gtest_filter="Resources_Filter_BENCHMARK_Test.Filters"
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from Resources_Filter_BENCHMARK_Test
[ RUN ] Resources_Filter_BENCHMARK_Test.Filters
Took 351728us to perform 50000 'r.nonRevocable()' operations on cpus(*):1;
gpus(*):1; mem(*):128; disk(*):256
Took 65710us to perform 50000 'r.revocable()' operations on cpus(*){REV}:1
Took 351148us to perform 50000 'r.unreserved()' operations on cpus(*):1;
gpus(*):1; mem(*):128; disk(*):256
Took 418719us to perform 50000 'r.reserved(role)' operations on cpus(role):1;
gpus(role):1; mem(role):128; disk(role):256
[ OK ] Resources_Filter_BENCHMARK_Test.Filters (1190 ms)
[----------] 1 test from Resources_Filter_BENCHMARK_Test (1190 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (1209 ms total)
[ PASSED ] 1 test.
```
Thanks,
Guangya Liu