mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guangya Liu <gyliu...@gmail.com>
Subject Review Request 50556: Added benchmark test for `Resources::nonRevocable`.
Date Thu, 28 Jul 2016 08:51:32 GMT

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

Review request for mesos, Benjamin Mahler, Joris Van Remoortere, and Klaus Ma.


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


Repository: mesos


Description
-------

Added benchmark test for `Resources::nonRevocable`.


Diffs
-----

  src/tests/resources_tests.cpp 4111e080b84079e100b731c9a56861b204f17388 

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


Testing
-------

make
make check

```
[==========] Running 3 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 3 tests from ResourcesOperators/Resources_BENCHMARK_Test
[ RUN      ] ResourcesOperators/Resources_BENCHMARK_Test.Arithmetic/0
Took 271717us to perform 50000 'total += r' operations on cpus(*):1; gpus(*):1; mem(*):128;
disk(*):256
Took 1.303957secs to perform 50000 'total.contains(r)' operations on cpus(*):1; gpus(*):1;
mem(*):128; disk(*):256
Took 526481us to perform 50000 'total -= r' operations on cpus(*):1; gpus(*):1; mem(*):128;
disk(*):256
Took 968073us to perform 50000 'total = total + r' operations on cpus(*):1; gpus(*):1; mem(*):128;
disk(*):256
Took 1.270586secs to perform 50000 'total = total - r' operations on cpus(*):1; gpus(*):1;
mem(*):128; disk(*):256
Took 775512us to perform 50000 'r.nonRevocable()' operations on cpus(*):1; gpus(*):1; mem(*):128;
disk(*):256
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Arithmetic/0 (5118 ms)
[ RUN      ] ResourcesOperators/Resources_BENCHMARK_Test.Arithmetic/1
Took 23.026846secs to perform 10 'total += r' operations on cpus(0, principal_0, {key_0: value_0}):1;
gpus(...
Took 49.498008secs to perform 10 'total.contains(r)' operations on cpus(0, principal_0, {key_0:
value_0}):1; gpus(...
Took 24.343378secs to perform 10 'total -= r' operations on cpus(0, principal_0, {key_0: value_0}):1;
gpus(...
Took 24.444537secs to perform 10 'total = total + r' operations on cpus(0, principal_0, {key_0:
value_0}):1; gpus(...
Took 24.803728secs to perform 10 'total = total - r' operations on cpus(0, principal_0, {key_0:
value_0}):1; gpus(...
Took 23.992406secs to perform 10 'r.nonRevocable()' operations on cpus(0, principal_0, {key_0:
value_0}):1; gpus(...
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Arithmetic/1 (170300 ms)
[ RUN      ] ResourcesOperators/Resources_BENCHMARK_Test.Arithmetic/2
Took 2.832429secs to perform 1000 'total += r' operations on ports(*):[1-2, 4-5, 7-8, 10-11,
13-14, 16-17, 1...
Took 22.034252secs to perform 1000 'total.contains(r)' operations on ports(*):[1-2, 4-5, 7-8,
10-11, 13-14, 16-17, 1...
Took 3.628885secs to perform 1000 'total -= r' operations on ports(*):[1-2, 4-5, 7-8, 10-11,
13-14, 16-17, 1...
Took 3.113548secs to perform 1000 'total = total + r' operations on ports(*):[1-2, 4-5, 7-8,
10-11, 13-14, 16-17, 1...
Took 3.854608secs to perform 1000 'total = total - r' operations on ports(*):[1-2, 4-5, 7-8,
10-11, 13-14, 16-17, 1...
Took 8.517941secs to perform 1000 'r.nonRevocable()' operations on ports(*):[1-2, 4-5, 7-8,
10-11, 13-14, 16-17, 1...
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Arithmetic/2 (43985 ms)
[----------] 3 tests from ResourcesOperators/Resources_BENCHMARK_Test (219403 ms total)

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


Thanks,

Guangya Liu


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