gold_hash_map vs google sparse map by google's time_hash_map.cc

这个列表由我写的一个 perl 程序抓取 time_hash_map 的结果生成。time_hash_map 是 google 自己实现的 hash table 中的一个性能测试程序,我在其中加入了针对 gold_hash_map 的测试,没有其它任何改动

operation(byte=4)gold_hash_mapDENSE
HASH_MAP
SPARSE
HASH_MAP
STANDARD
HASH_MAP
STANDARD
MAP
time:fetch_empty54.570865.5234187
copy:fetch_empty035100
hash:fetch_empty20000000020000000
time:fetch_random171.5257.51217366.5741
copy:fetch_random4000000184858511135547840000004000000
hash:fetch_random40000006097153735542671983740
time:fetch_sequential140.52651232327.5686.5
copy:fetch_sequential4000000184858511135547840000004000000
hash:fetch_sequential40000006097153735542671983740
time:grow327.5702311219811310.5
copy:grow4000000184858511135547840000004000000
hash:grow20000004097153535542651983740
time:predict/grow3123041201.51973.51349.5
copy:predict/grow400000012194347800000540000004000000
hash:predict/grow20000002000000200000051983740
time:remove226.5358.5149028861474
copy:remove4000000204858511335547840000004000000
hash:remove40000006097153735542691983730
time:replace164210.5499.5327.5639.5
copy:replace6000000184858511135547840000004000000
hash:replace40000006097153735542671983740
time:toggle21882728162675.5827
copy:toggle4000000149994351031982940000004000000
hash:toggle40000004124985407995760000000
ztress:1024:1126.12247.33964.31156.7
ztress:1024:1024156.12685.58116.733527.3
ztress:256:11881156.12528.21124.1
ztress:256:256156840.12746.29078.6
operation(byte=8)gold_hash_mapDENSE
HASH_MAP
SPARSE
HASH_MAP
STANDARD
HASH_MAP
STANDARD
MAP
time:fetch_empty9478936265203
copy:fetch_empty035100
hash:fetch_empty10000000010000000
time:fetch_random1882811310562764
copy:fetch_random20000009242963567775320000002000000
hash:fetch_random20000003048576367770431497970
time:fetch_sequential1712811248452655
copy:fetch_sequential20000009242963567775320000002000000
hash:fetch_sequential20000003048576367770431497970
time:grow359874312014041310
copy:grow20000009242963567775320000002000000
hash:grow10000002048576267770421497970
time:predict/grow327359124814511310
copy:predict/grow20000006097195400000520000002000000
hash:predict/grow10000001000000100000021497970
time:remove234406159112791435
copy:remove200000010242963667775320000002000000
hash:remove20000003048576367770441497960
time:replace203234499452608
copy:replace30000009242963567775320000002000000
hash:replace20000003048576367770431497970
time:toggle26596730112761889
copy:toggle20000007497755515974120000002000000
hash:toggle20000002062443203993530000000
ztress:1024:1124.12313.33994.31184.7
ztress:1024:1024188.12809.68364.833779.5
ztress:256:1188.11252.72557.51064.6
ztress:256:256188.1932.52873.79053.2
operation(byte=16)gold_hash_mapDENSE
HASH_MAP
SPARSE
HASH_MAP
STANDARD
HASH_MAP
STANDARD
MAP
time:fetch_empty12492906282218
copy:fetch_empty035100
hash:fetch_empty500000005000000
time:fetch_random2182801280468780
copy:fetch_random10000004621515283888910000001000000
hash:fetch_random10000001524287183884316497970
time:fetch_sequential1883121280404656
copy:fetch_sequential10000004621515283888910000001000000
hash:fetch_sequential10000001524287183884316497970
time:grow406906330816541342
copy:grow10000004621515283888910000001000000
hash:grow5000001024287133884311497970
time:predict/grow374376134020281372
copy:predict/grow10000003048619200000510000001000000
hash:predict/grow50000050000050000011497970
time:remove250406149616861436
copy:remove10000005121515333888910000001000000
hash:remove10000001524287183884321497960
time:replace250248532406562
copy:replace15000004621515283888910000001000000
hash:replace10000001524287183884316497970
time:toggle342102830262900936
copy:toggle10000003747115257943310000001000000
hash:toggle10000001031177101985815000000
operation(byte=256)gold_hash_mapDENSE
HASH_MAP
SPARSE
HASH_MAP
STANDARD
HASH_MAP
STANDARD
MAP
time:fetch_empty992010081248240
copy:fetch_empty035100
hash:fetch_empty6250000625000
time:fetch_random9921248224014881008
copy:fetch_random62500577731354875125000125000
hash:fetch_random1250001905322298382062240
time:fetch_sequential124899224961248752
copy:fetch_sequential62500577731354875125000125000
hash:fetch_sequential1250001905322298382062240
time:grow15043488723237441504
copy:grow62500577731354875125000125000
hash:grow625001280321673381437240
time:predict/grow15041488299239841504
copy:predict/grow62500381115250005125000125000
hash:predict/grow6250062500625001437240
time:remove9921248249634881760
copy:remove62500640231417375125000125000
hash:remove1250001905322298382687230
time:replace100899212481504496
copy:replace62500577731354875125000125000
hash:replace1250001905322298382062240
time:toggle2000300857445488992
copy:toggle62500466655322033125000125000
hash:toggle1250001288531273831875000

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值