Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b9c4962d authored by Steven Moreland's avatar Steven Moreland
Browse files

binderRpcBenchmark: repeatBinder kernel binder

Before, this was only running rpc binder for the repeateBinder test
case.

BM_repeatBinder/0                              61680 ns        33016 ns
17730
BM_repeatBinder/1                             162368 ns        87825 ns
9997

So, RPC is much slower. Investigation to come. May be related to
b/182939933 (reading /dev/urandom to come up with addresses for new RPC
binder objects).

Bug: 182940634
Test: binderRpcBenchmark
Change-Id: I02c147bb011994ab9acb9f30de00538f04cfb0d9
parent f1aa6cdd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -153,7 +153,7 @@ BENCHMARK(BM_throughputForTransportAndBytes)
                       {64, 1024, 2048, 4096, 8182, 16364, 32728, 65535, 65536, 65537}});

void BM_repeatBinder(benchmark::State& state) {
    sp<IBinder> binder = gSession->getRootObject();
    sp<IBinder> binder = getBinderForOptions(state);
    CHECK(binder != nullptr);
    sp<IBinderRpcBenchmark> iface = interface_cast<IBinderRpcBenchmark>(binder);
    CHECK(iface != nullptr);