View Single Post
Old 08-19-2012, 11:48 PM   #1
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021142
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Post Benchmark. Benchmarking Ciphers. (And COMPLETED script loader.)

Extract somewhere on FAT drive

[root@kindle us]# ./benchmark.sh
Spoiler:

MD5 : 9639 Kb/s, 0 cycles/byte
SHA-1 : 5841 Kb/s, 0 cycles/byte
SHA-256 : 2808 Kb/s, 0 cycles/byte
SHA-512 : 1488 Kb/s, 0 cycles/byte
ARC4 : 4279 Kb/s, 0 cycles/byte
3DES : 466 Kb/s, 2 cycles/byte
DES : 1085 Kb/s, 1 cycles/byte
AES-128 : 1832 Kb/s, 0 cycles/byte
AES-192 : 1650 Kb/s, 0 cycles/byte
AES-256 : 1504 Kb/s, 0 cycles/byte
CAMELLIA-128 : 1281 Kb/s, 0 cycles/byte
CAMELLIA-192 : 1000 Kb/s, 0 cycles/byte
CAMELLIA-256 : 1004 Kb/s, 0 cycles/byte
HAVEGE : 62 Kb/s, 16 cycles/byte
CTR_DRBG (NOPR) : 1607 Kb/s, 0 cycles/byte
CTR_DRBG (PR) : 1149 Kb/s, 0 cycles/byte
RSA-1024 : 604 public/s
RSA-1024 : 30 private/s
RSA-2048 : 188 public/s
RSA-2048 : 6 private/s
RSA-4096 : 53 public/s
RSA-4096 : 1 private/s

The point here is not what does benchmark do? it does ^this, at about this speed on all threes.

This was about, getting libs reffed right and packaging stuff neatly, which is now done to a large degree.

Here's a readelf -d pruned.

Dynamic section at offset 0x25d8 contains 25 entries:
Tag Type Name/Value
0x00000001 (NEEDED) Shared library: [libpolarssl.so.1]
0x00000001 (NEEDED) Shared library: [libc.so.6]

This should now work OOTB on all 3's. possibly others FB welcomed on that.

As I said this is about establishing working practices.
The application is now made available with the better script.

Thanks.
Attached Files
File Type: gz benchmark.tar.gz (122.4 KB, 57 views)

Last edited by twobob; 08-21-2012 at 01:28 AM. Reason: New script - all done.
twobob is offline   Reply With Quote