From owner-freebsd-threads@FreeBSD.ORG Wed Jan 19 11:21:13 2005 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A41EE16A4CF for ; Wed, 19 Jan 2005 11:21:13 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 66E2D43D5F; Wed, 19 Jan 2005 11:21:13 +0000 (GMT) (envelope-from davidxu@freebsd.org) Received: from [127.0.0.1] (davidxu@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0JBL8W7099764; Wed, 19 Jan 2005 11:21:10 GMT (envelope-from davidxu@freebsd.org) Message-ID: <41EE42A2.8070906@freebsd.org> Date: Wed, 19 Jan 2005 19:21:06 +0800 From: David Xu User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20041226 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Julian Elischer References: <41DCEA91.6040402@he.iki.fi> <41DCFD2F.2040207@freebsd.org> <41DD01CE.70004@he.iki.fi> <41DFED9A.8070202@freebsd.org> <41E0256A.1000801@he.iki.fi> <41ED18D5.80304@freebsd.org> <41ED4B68.6090803@elischer.org> <41ED9E6D.4000509@freebsd.org> <41EDA778.70605@elischer.org> In-Reply-To: <41EDA778.70605@elischer.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-threads@freebsd.org Subject: Re: higher speed mutexes X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jan 2005 11:21:13 -0000 Julian Elischer wrote: > > > David Xu wrote: > >> Julian Elischer wrote: >> >>> >>> >>> David Xu wrote: >>> >>>> I have put it at: >>>> http://people.freebsd.org/~davidxu/libthread.fbsd.tgz >>>> >>>> Anyone wants to see how fast supersmack can be on FreeBSD >>>> should try it. >>> >>> >>> >>> >>> >>> Oh come on.. give us some numbers :-) >>> >> Linuxthreads: >> ============================================ >> Script started on Mon Jan 17 19:16:10 2005 >> davidxu@alona:/home/davidxu/super-smack-1.2/smacks> super-smack >> ./update-select.smack 10 1000 Query Barrel Report for client smacker >> connect: max=12ms min=2ms avg= 7ms from 10 clients Query_type >> num_queries max_time min_time q_per_s >> select_index 10000 3 0 1425.98 >> update_index 10000 5 0 1425.98 >> davidxu@alona:/home/davidxu/super-smack-1.2/smacks> super-smack >> ./update-select.smack 10 1000 Query Barrel Report for client smacker >> connect: max=10ms min=2ms avg= 6ms from 10 clients Query_type >> num_queries max_time min_time q_per_s >> select_index 10000 7 0 1423.48 >> update_index 10000 4 0 1423.48 >> davidxu@alona:/home/davidxu/super-smack-1.2/smacks> ./sup-super-smack >> ./update-select.smack 50 10000 Query Barrel Report for client smacker >> connect: max=59ms min=2ms avg= 30ms from 50 clients Query_type >> num_queries max_time min_time q_per_s >> select_index 500000 26 0 1283.48 >> update_index 500000 23 0 1283.48 >> davidxu@alona:/home/davidxu/super-smack-1.2/smacks> exit exit >> >> Script done on Mon Jan 17 19:24:40 2005 >> >> ============================================= >> >> libthread: >> Script started on Mon Jan 17 19:27:21 2005 >> davidxu@alona:/home/davidxu/super-smack-1.2/smacks> super-smack >> ./update-select.smack 10 1000 Query Barrel Report for client smacker >> connect: max=12ms min=2ms avg= 6ms from 10 clients Query_type >> num_queries max_time min_time q_per_s >> select_index 10000 4 0 1650.14 >> update_index 10000 4 0 1650.14 >> davidxu@alona:/home/davidxu/super-smack-1.2/smacks> super-smack >> ./update-select.smack 10 1000 Query Barrel Report for client smacker >> connect: max=15ms min=2ms avg= 7ms from 10 clients Query_type >> num_queries max_time min_time q_per_s >> select_index 10000 5 0 1664.94 >> update_index 10000 3 0 1664.94 >> davidxu@alona:/home/davidxu/super-smack-1.2/smacks> super-smack >> ./update-select.smack 10 100050 10000 Query >> Barrel Report for client smacker >> connect: max=82ms min=2ms avg= 40ms from 50 clients Query_type >> num_queries max_time min_time q_per_s >> select_index 500000 25 0 1485.13 >> update_index 500000 17 0 1485.13 >> davidxu@alona:/home/davidxu/super-smack-1.2/smacks> exit exit > > > > out of curiosity, where do libthr and libpthread come in? > ============================================ libpthread: Script started on Wed Jan 19 19:01:39 2005 davidxu@alona:/home/davidxu/super-smack-1.2/smacks> super-smack ./update-select.smack 10 1000 Query Barrel Report for client smacker connect: max=10ms min=8ms avg= 8ms from 10 clients Query_type num_queries max_time min_time q_per_s select_index 10000 4 0 1265.38 update_index 10000 3 0 1265.38 davidxu@alona:/home/davidxu/super-smack-1.2/smacks> super-smack ./update-select.smack 10 1000 Query Barrel Report for client smacker connect: max=8ms min=2ms avg= 6ms from 10 clients Query_type num_queries max_time min_time q_per_s select_index 10000 4 0 1296.71 update_index 10000 5 0 1296.71 davidxu@alona:/home/davidxu/super-smack-1.2/smacks> super-smack ./pupdate-select.smack 50 10000 Query Barrel Report for client smacker connect: max=57ms min=1ms avg= 35ms from 50 clients Query_type num_queries max_time min_time q_per_s select_index 500000 27 0 1267.85 update_index 500000 23 0 1267.85 davidxu@alona:/home/davidxu/super-smack-1.2/smacks> exit exit Script done on Wed Jan 19 19:09:10 2005 ======================================= libthr: Script started on Wed Jan 19 18:52:36 2005 davidxu@alona:/home/davidxu/super-smack-1.2/smacks> super-smack ./update-select.smack 10 1000 Query Barrel Report for client smacker connect: max=14ms min=2ms avg= 7ms from 10 clients Query_type num_queries max_time min_time q_per_s select_index 10000 3 1 1512.39 update_index 10000 3 0 1512.39 davidxu@alona:/home/davidxu/super-smack-1.2/smacks> super-smack ./update-select.smack 10 1000 Query Barrel Report for client smacker connect: max=15ms min=3ms avg= 8ms from 10 clients Query_type num_queries max_time min_time q_per_s select_index 10000 5 0 1537.13 update_index 10000 3 0 1537.13 davidxu@alona:/home/davidxu/super-smack-1.2/smacks> super-smack ./update-select.smack 50 10000 Query Barrel Report for client smacker connect: max=93ms min=1ms avg= 47ms from 50 clients Query_type num_queries max_time min_time q_per_s select_index 500000 23 0 1354.00 update_index 500000 19 0 1354.00 davidxu@alona:/home/davidxu/super-smack-1.2/smacks> exit exit Script done on Wed Jan 19 18:59:59 2005 ============================================= libc_r: Script started on Wed Jan 19 19:10:05 2005 davidxu@alona:/home/davidxu/super-smack-1.2/smacks> super-smack ./update-select.smack 10 1000 Query Barrel Report for client smacker connect: max=9ms min=2ms avg= 6ms from 10 clients Query_type num_queries max_time min_time q_per_s select_index 10000 4 0 1377.04 update_index 10000 3 0 1377.04 davidxu@alona:/home/davidxu/super-smack-1.2/smacks> super-smack ./update-select.smack 10 1000 Query Barrel Report for client smacker connect: max=8ms min=2ms avg= 5ms from 10 clients Query_type num_queries max_time min_time q_per_s select_index 10000 7 0 1364.92 update_index 10000 4 0 1364.92 davidxu@alona:/home/davidxu/super-smack-1.2/smacks> super-smack ./uipdate-select.sdmack 150 10000 Query Barrel Report for client smacker connect: max=37ms min=5ms avg= 28ms from 50 clients Query_type num_queries max_time min_time q_per_s select_index 500000 20 1 1305.62 update_index 500000 19 2 1305.62 davidxu@alona:/home/davidxu/super-smack-1.2/smacks>