mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Klaus Ma <klaus1982...@gmail.com>
Subject Re: Review Request 49381: Benchmark for Resources class (cpu, mem & port)
Date Tue, 12 Jul 2016 04:11:20 GMT

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

(Updated July 12, 2016, 12:11 p.m.)


Review request for mesos, Benjamin Mahler, Guangya Liu, and Michael Park.


Changes
-------

Add test results.


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


Repository: mesos


Description
-------

Benchmark for Resources class (cpu, mem & port)


Diffs
-----

  src/tests/resources_tests.cpp dc12bd8f1e2da6972bc8aed598811c55d664036e 

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


Testing (updated)
-------

make
MESOS_BENCHMARK=1 GTEST_FILTER="*Resources_BENCHMARK_Test.Operator*" make check

[----------] 30 tests from ResourcesOperators/Resources_BENCHMARK_Test
[ RUN      ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_AddAndAssign/0
Took 4550us to `AddAndAssign` "cpus:1" 10000 times.
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_AddAndAssign/0 (5 ms)
[ RUN      ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_AddAndAssign/1
Took 9469us to `AddAndAssign` "cpus:1;mem:2" 10000 times.
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_AddAndAssign/1 (10 ms)
[ RUN      ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_AddAndAssign/2
Took 5.568495secs to `AddAndAssign` "cpus(r0):1;cpus(r1):1; ... cpus(r99):1" 10000 times.
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_AddAndAssign/2 (5568 ms)
[ RUN      ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_AddAndAssign/3
Took 14.068508secs to `AddAndAssign` "cpus(r0):1;mem(r0):100; ... cpus(r99):1;mem(r99):100"
10000 times.
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_AddAndAssign/3 (14069 ms)
[ RUN      ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_AddAndAssign/4
Took 16679us to `AddAndAssign` "[1-2, 3-4, ... , 199-200]" 10000 times.
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_AddAndAssign/4 (17 ms)
[ RUN      ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_Add/0
Took 23720us to `Add` "cpus:1" 10000 times.
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_Add/0 (24 ms)
[ RUN      ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_Add/1
Took 27599us to `Add` "cpus:1;mem:2" 10000 times.
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_Add/1 (27 ms)
[ RUN      ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_Add/2
Took 6.361708secs to `Add` "cpus(r0):1;cpus(r1):1; ... cpus(r99):1" 10000 times.
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_Add/2 (6362 ms)
[ RUN      ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_Add/3
Took 15.174096secs to `Add` "cpus(r0):1;mem(r0):100; ... cpus(r99):1;mem(r99):100" 10000 times.
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_Add/3 (15175 ms)
[ RUN      ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_Add/4
Took 34929us to `Add` "[1-2, 3-4, ... , 199-200]" 10000 times.
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_Add/4 (35 ms)
[ RUN      ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_Sub/0
Took 30136us to `Sub` "cpus:1" 10000 times.
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_Sub/0 (30 ms)
[ RUN      ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_Sub/1
Took 36232us to `Sub` "cpus:1;mem:2" 10000 times.
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_Sub/1 (36 ms)
[ RUN      ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_Sub/2
Took 431213us to `Sub` "cpus(r0):1;cpus(r1):1; ... cpus(r99):1" 10000 times.
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_Sub/2 (432 ms)
[ RUN      ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_Sub/3
Took 870109us to `Sub` "cpus(r0):1;mem(r0):100; ... cpus(r99):1;mem(r99):100" 10000 times.
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_Sub/3 (870 ms)
[ RUN      ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_Sub/4
Took 22045us to `Sub` "[1-2, 3-4, ... , 199-200]" 10000 times.
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_Sub/4 (22 ms)
[ RUN      ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_SubAndAssign/0
Took 3338us to `SubAndAssign` "cpus:1" 10000 times.
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_SubAndAssign/0 (4 ms)
[ RUN      ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_SubAndAssign/1
Took 6255us to `SubAndAssign` "cpus:1;mem:2" 10000 times.
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_SubAndAssign/1 (6 ms)
[ RUN      ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_SubAndAssign/2
Took 400747us to `SubAndAssign` "cpus(r0):1;cpus(r1):1; ... cpus(r99):1" 10000 times.
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_SubAndAssign/2 (401 ms)
[ RUN      ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_SubAndAssign/3
Took 796633us to `SubAndAssign` "cpus(r0):1;mem(r0):100; ... cpus(r99):1;mem(r99):100" 10000
times.
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_SubAndAssign/3 (797 ms)
[ RUN      ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_SubAndAssign/4
Took 3709us to `SubAndAssign` "[1-2, 3-4, ... , 199-200]" 10000 times.
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_SubAndAssign/4 (3 ms)
[ RUN      ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_CPUS/0
Took 2764us to `cpus()` "cpus:1" 10000 times.
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_CPUS/0 (3 ms)
[ RUN      ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_CPUS/1
Took 3137us to `cpus()` "cpus:1;mem:2" 10000 times.
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_CPUS/1 (3 ms)
[ RUN      ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_CPUS/2
Took 107398us to `cpus()` "cpus(r0):1;cpus(r1):1; ... cpus(r99):1" 10000 times.
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_CPUS/2 (108 ms)
[ RUN      ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_CPUS/3
Took 131399us to `cpus()` "cpus(r0):1;mem(r0):100; ... cpus(r99):1;mem(r99):100" 10000 times.
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_CPUS/3 (132 ms)
[ RUN      ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_CPUS/4
Took 1624us to `cpus()` "[1-2, 3-4, ... , 199-200]" 10000 times.
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_CPUS/4 (1 ms)
[ RUN      ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_MEM/0
Took 1577us to `mem()` "cpus:1" 10000 times.
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_MEM/0 (2 ms)
[ RUN      ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_MEM/1
Took 3019us to `mem()` "cpus:1;mem:2" 10000 times.
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_MEM/1 (3 ms)
[ RUN      ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_MEM/2
Took 24423us to `mem()` "cpus(r0):1;cpus(r1):1; ... cpus(r99):1" 10000 times.
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_MEM/2 (25 ms)
[ RUN      ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_MEM/3
Took 129675us to `mem()` "cpus(r0):1;mem(r0):100; ... cpus(r99):1;mem(r99):100" 10000 times.
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_MEM/3 (129 ms)
[ RUN      ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_MEM/4
Took 1405us to `mem()` "[1-2, 3-4, ... , 199-200]" 10000 times.
[       OK ] ResourcesOperators/Resources_BENCHMARK_Test.Operator_MEM/4 (2 ms)
[----------] 30 tests from ResourcesOperators/Resources_BENCHMARK_Test (44301 ms total)


Thanks,

Klaus Ma


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