higher speed mutexes
David Xu
davidxu at freebsd.org
Wed Jan 19 03:21:13 PST 2005
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 at 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 at 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 at alona:/home/davidxu/super-smack-1.2/smacks> ./sup-[K[K[K[K[K[Ksuper-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 at 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 at 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 at 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 at alona:/home/davidxu/super-smack-1.2/smacks> super-smack
>> ./update-select.smack 10 1000[K[K[K[K[K[K50 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 at 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 at 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 at 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 at alona:/home/davidxu/super-smack-1.2/smacks> super-smack
./p[Kupdate-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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at alona:/home/davidxu/super-smack-1.2/smacks>
super-smack ./ui[Kpdate-select.sd[Kmack 1[K50 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 at alona:/home/davidxu/super-smack-1.2/smacks>
More information about the freebsd-threads
mailing list