Change in libosmo-abis[master]: move flip_buf_bits() from DAHDI to a shared flip.c

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Sun Aug 2 07:53:36 UTC 2020


laforge has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-abis/+/19070 )

Change subject: move flip_buf_bits() from DAHDI to a shared flip.c
......................................................................


Patch Set 5:

I finally did some benchmarking: reversing the bit-order in a 1 Mbyte sized buffer.

* on a core-i7, the flip (lookup table) always seems to win, no matter how many iterations of buffer re-ordering:

1     iterations: flip=15396248, revb=19484348; revb = 126 %
10    iterations: flip=69081928, revb=162441630; revb = 235 %
100   iterations: flip=311541169, revb=580125967; revb = 186 %
1000  iterations: flip=2430175640, revb=5823932997; revb = 239 %

* on an atom, the flip (lookup table) seems to win at a lower margin for all workloads except a single flip:

1     iterations: flip=20162864, revb=18311024; revb = 90 %
10    iterations: flip=150938160, revb=217883200; revb = 144 %
100   iterations: flip=1509970264, revb=1818844456; revb = 120 %
1000  iterations: flip=14332313768, revb=17541548328; revb = 122 %

Now I'm a bit puzzled.  Will try to measure with more realistic buffer sizes (100...1000 bytes)


-- 
To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/19070
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: I8c6dc3eea921a73ebe65540aad0f0c0584d47e5a
Gerrit-Change-Number: 19070
Gerrit-PatchSet: 5
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-CC: tnt <tnt at 246tNt.com>
Gerrit-Comment-Date: Sun, 02 Aug 2020 07:53:36 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200802/7bcc0a86/attachment.htm>


More information about the gerrit-log mailing list