[Xorp-cvs] XORP cvs commit: xorp/policy/test

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


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

XORP CVS repository


Modified files:
	policy/test   file_varrw.cc file_varrw.hh 

Log message:
	don't clear trash on sync.  This isn't really an optimization but it factors out
	noise from the varrw implementation so that I can see the overhead of filters
	more evidently.
	
	before:
	
	[93% 03:00 shorty test]# ./policybench -p base -v base.var
	Loading...
	Benchmarking.  Iterations: 100000
	Stats:
	Total time 500 (ms) iterations 100000
	Iterations/s 200000.000
	Instr  1 Avg Time    179.183    ( 4.83%)
	Instr  2 Avg Time    262.700    ( 7.08%)
	Instr  3 Avg Time    551.736    (14.88%)
	Instr  4 Avg Time    274.168    ( 7.39%)
	Instr  5 Avg Time    250.884    ( 6.77%)
	Instr  6 Avg Time    211.912    ( 5.71%)
	Instr  7 Avg Time   1173.063    (31.63%)
	Instr  8 Avg Time    297.826    ( 8.03%)
	Instr  9 Avg Time    212.915    ( 5.74%)
	Instr 10 Avg Time    293.965    ( 7.93%)
	[93% 02:58 shorty test]#
	
	[85% 03:09 shorty test]# ./policybench -p base -v base.var
	Loading...
	Benchmarking.  Iterations: 100000
	Stats:
	Total time 388 (ms) iterations 100000
	Iterations/s 257731.959
	Instr  1 Avg Time    179.904    ( 4.84%)
	Instr  2 Avg Time    421.898    (11.34%)
	Instr  3 Avg Time    486.807    (13.08%)
	Instr  4 Avg Time    273.925    ( 7.36%)
	Instr  5 Avg Time    251.567    ( 6.76%)
	Instr  6 Avg Time    222.149    ( 5.97%)
	Instr  7 Avg Time   1055.711    (28.37%)
	Instr  8 Avg Time    301.469    ( 8.10%)
	Instr  9 Avg Time    224.392    ( 6.03%)
	Instr 10 Avg Time    302.851    ( 8.14%)
	[84% 02:33 shorty test]#
	
	+28% faster

Revision  Changes                               Path
1.16      +10 -6;  commitid: 842448995c9341a7;  xorp/policy/test/file_varrw.cc
1.13      +5 -2;  commitid: 842448995c9341a7;   xorp/policy/test/file_varrw.hh



More information about the Xorp-cvs mailing list