[Xorp-cvs] XORP cvs commit: xorp/bgp

Andrea Bittau abittau at icir.org
Wed Aug 6 01:12:20 PDT 2008


CVSROOT:	/usr/local/www/data/cvs
Module name:	xorp
Changes by:	abittau at chum.icir.org	2008-08-06 08:12:20 UTC

XORP CVS repository


Modified files:
	bgp           path_attribute.cc 

Log message:
	fully specialize path attribute list constructor.  Just copy the list over
	without adding attributes one by one.  A 13% gain.
	
	before
	
	[100% shorty test]# ./policybench -p base -v base.var -t 1
	Loading...
	Benchmarking.  Iterations: 100000
	Stats:
	Total time 2178 (ms) iterations 100000
	Iterations/s 45913.682
	Instr  1 Avg Time    264.769    ( 3.94%)
	Instr  2 Avg Time    780.156    (11.62%)
	Instr  3 Avg Time    826.072    (12.30%)
	Instr  4 Avg Time    369.035    ( 5.50%)
	Instr  5 Avg Time    594.807    ( 8.86%)
	Instr  6 Avg Time    216.092    ( 3.22%)
	Instr  7 Avg Time   2803.071    (41.74%)
	Instr  8 Avg Time    387.168    ( 5.77%)
	Instr  9 Avg Time    216.384    ( 3.22%)
	Instr 10 Avg Time    257.371    ( 3.83%)
	[100% shorty test]#
	
	now
	
	[100% shorty test]# ./policybench -p base -v base.var -t 1
	Loading...
	Benchmarking.  Iterations: 100000
	Stats:
	Total time 1929 (ms) iterations 100000
	Iterations/s 51840.332
	Instr  1 Avg Time    235.664    ( 3.54%)
	Instr  2 Avg Time    695.423    (10.44%)
	Instr  3 Avg Time    854.787    (12.83%)
	Instr  4 Avg Time    350.714    ( 5.26%)
	Instr  5 Avg Time    547.720    ( 8.22%)
	Instr  6 Avg Time    219.960    ( 3.30%)
	Instr  7 Avg Time   2885.022    (43.30%)
	Instr  8 Avg Time    401.352    ( 6.02%)
	Instr  9 Avg Time    220.225    ( 3.31%)
	Instr 10 Avg Time    251.501    ( 3.77%)

Revision  Changes                               Path
1.95      +23 -3;  commitid: 853948995ce241a7;  xorp/bgp/path_attribute.cc



More information about the Xorp-cvs mailing list