-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/51033/
-----------------------------------------------------------
(Updated 十月 12, 2016, 2:40 a.m.)
Review request for mesos, Benjamin Mahler and Jiang Yan Xu.
Bugs: MESOS-5700
https://issues.apache.org/jira/browse/MESOS-5700
Repository: mesos
Description
-------
Added validation benchmark test for resources.
Diffs (updated)
-----
src/tests/resources_tests.cpp 6a12783c26f359dda835b4866b299a8fcfb3f972
Diff: https://reviews.apache.org/r/51033/diff/
Testing (updated)
-------
make
make check
```
./bin/mesos-tests.sh --benchmark
--gtest_filter="*Resources_Validate_BENCHMARK_Test.Validate/*"
[==========] Running 4 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 4 tests from ResourcesValidate/Resources_Validate_BENCHMARK_Test
[ RUN ] ResourcesValidate/Resources_Validate_BENCHMARK_Test.Validate/0
Took 3280us to perform 5000 'validate(r)' operations on cpus(*):1; gpus(*):1;
mem(*):128; disk(*):256
[ OK ] ResourcesValidate/Resources_Validate_BENCHMARK_Test.Validate/0 (3
ms)
[ RUN ] ResourcesValidate/Resources_Validate_BENCHMARK_Test.Validate/1
Took 4765us to perform 5000 'validate(r)' operations on cpus(role1):1;
gpus(role2):1; mem(*):128; disk(...
[ OK ] ResourcesValidate/Resources_Validate_BENCHMARK_Test.Validate/1 (5
ms)
[ RUN ] ResourcesValidate/Resources_Validate_BENCHMARK_Test.Validate/2
Took 3.615207secs to perform 1000 'validate(r)' operations on ports(*):[1-1,
3-3, 5-5, 7-7, 9-9, 11-11, 13-13...
[ OK ] ResourcesValidate/Resources_Validate_BENCHMARK_Test.Validate/2
(3616 ms)
[ RUN ] ResourcesValidate/Resources_Validate_BENCHMARK_Test.Validate/3
Took 1676us to perform 5000 'validate(r)' operations on
disk(role)[PATH:mnt,2:path]:10
[ OK ] ResourcesValidate/Resources_Validate_BENCHMARK_Test.Validate/3 (1
ms)
[----------] 4 tests from ResourcesValidate/Resources_Validate_BENCHMARK_Test
(3625 ms total)
[----------] Global test environment tear-down
[==========] 4 tests from 1 test case ran. (3635 ms total)
[ PASSED ] 4 tests.
```
Thanks,
Guangya Liu