-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/51033/
-----------------------------------------------------------

(Updated 九月 22, 2016, 9:27 a.m.)


Review request for mesos, Benjamin Mahler and Jiang Yan Xu.


Changes
-------

Rebase


Repository: mesos


Description
-------

Added validation benchmark test for resources.


Diffs (updated)
-----

  src/tests/resources_tests.cpp 3e493007d6d1d8194d07035aaa1cde28dedf2b5a 

Diff: https://reviews.apache.org/r/51033/diff/


Testing
-------

make
make check

```
[==========] Running 4 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 4 tests from ResourcesOperators/Resources_BENCHMARK_Test
[ RUN      ] ResourcesOperators/Resources_BENCHMARK_Test.Validations/0
Took 44396us to perform 50000 'validate(r)' operations on cpus(*):1; gpus(*):1; 
mem(*):128; disk(*):256
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Validations/0 (45 ms)
[ RUN      ] ResourcesOperators/Resources_BENCHMARK_Test.Validations/1
Took 10034us to perform 10 'validate(r)' operations on cpus(0, principal_0, 
{key_0: value_0}):1; gpus(...
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Validations/1 (25 ms)
[ RUN      ] ResourcesOperators/Resources_BENCHMARK_Test.Validations/2
Took 2.825012secs to perform 1000 'validate(r)' operations on ports(*):[1-2, 
4-5, 7-8, 10-11, 13-14, 16-17, 1...
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Validations/2 (2825 ms)
[ RUN      ] ResourcesOperators/Resources_BENCHMARK_Test.Validations/3
Took 39538us to perform 50000 'validate(r)' operations on cpus(*):1; 
mem(*):128; disk(test)[persistentId:...
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Validations/3 (40 ms)
[----------] 4 tests from ResourcesOperators/Resources_BENCHMARK_Test (2935 ms 
total)

[----------] Global test environment tear-down
[==========] 4 tests from 1 test case ran. (2944 ms total)
[  PASSED  ] 4 tests.
```


Thanks,

Guangya Liu

Reply via email to