mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guangya Liu <gyliu...@gmail.com>
Subject Re: Review Request 50551: Added benchmark test for `Resources::contains`.
Date Thu, 22 Sep 2016 09:22:32 GMT

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

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


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


Changes
-------

Rebase


Bugs: MESOS-5700
    https://issues.apache.org/jira/browse/MESOS-5700


Repository: mesos


Description
-------

Added benchmark test for `Resources::contains`.


Diffs (updated)
-----

  src/tests/resources_tests.cpp 3e493007d6d1d8194d07035aaa1cde28dedf2b5a 

Diff: https://reviews.apache.org/r/50551/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.Contains/0
Took 933707us to perform 50000 'initial.contains(r)' operations on cpus(*):1; gpus(*):1; mem(*):128;
disk(*):256 with initial resources cpus(*):1; gpus(*):1; mem(*):128; disk(*):256
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Contains/0 (934 ms)
[ RUN      ] ResourcesOperators/Resources_BENCHMARK_Test.Contains/1
Took 28.93978secs to perform 10 'initial.contains(r)' operations on cpus(0, principal_0, {key_0:
value_0}):1; gpus(... with initial resources cpus(0, principal_0, {key_0: value_0}):1; gpus(...
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Contains/1 (28998 ms)
[ RUN      ] ResourcesOperators/Resources_BENCHMARK_Test.Contains/2
Took 467295us to perform 1000 'initial.contains(r)' operations on ports(*):[1-2, 4-5, 7-8,
10-11, 13-14, 16-17, 1... with initial resources ports(*):[30000-50000]
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Contains/2 (468 ms)
[ RUN      ] ResourcesOperators/Resources_BENCHMARK_Test.Contains/3
Took 1.115281secs to perform 50000 'initial.contains(r)' operations on cpus(*):1; mem(*):128;
disk(test)[persistentId:... with initial resources cpus(*):1; mem(*):128; disk(test)[persistentId:...
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Contains/3 (1115 ms)
[----------] 4 tests from ResourcesOperators/Resources_BENCHMARK_Test (31515 ms total)

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


Thanks,

Guangya Liu


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message