Skip to content

Instantly share code, notes, and snippets.

@brson
Created September 13, 2012 21:09
Show Gist options
  • Save brson/3717662 to your computer and use it in GitHub Desktop.
Save brson/3717662 to your computer and use it in GitHub Desktop.
# adc1427282b4da8f963550e87cdbe512157958b4
## RUST_BENCH=1 perf record x86_64-unknown-linux-gnu/test/bench/msgsend-pipes.stage2-x86_64-unknown-linux-gnu
Count is 100000000
Test took 1.3927 seconds
Throughput=718029.353679 per sec
[ perf record: Woken up 8 times to write data ]
[ perf record: Captured and wrote 2.342 MB perf.data (~102334 samples) ]
Count is 100000000
Test took 0.98151 seconds
Throughput=1018838.500122 per sec
[ perf record: Woken up 7 times to write data ]
[ perf record: Captured and wrote 1.930 MB perf.data (~84310 samples) ]
Count is 100000000
Test took 0.904088 seconds
Throughput=1106087.388764 per sec
[ perf record: Woken up 6 times to write data ]
[ perf record: Captured and wrote 1.928 MB perf.data (~84238 samples) ]
Count is 100000000
Test took 1.47434 seconds
Throughput=678268.933833 per sec
[ perf record: Woken up 7 times to write data ]
[ perf record: Captured and wrote 1.950 MB perf.data (~85218 samples) ]
## perf report
22.91% msgsend-pipes.s [dm_crypt] [k] 0xffffffff8103804a
6.41% msgsend-pipes.s msgsend-pipes.stage2-x86_64-unknown-linux-gnu [.] pipes::__extensions__::send_3622::_c4ae2bbe46ebaa::_00
5.52% msgsend-pipes.s msgsend-pipes.stage2-x86_64-unknown-linux-gnu [.] server::_223aca2280bcecfd::_00
4.50% msgsend-pipes.s libcore-c3ca5d77d81b46c1-0.4.so [.] pipes::PacketHeader::meth_8311::unblock::_9d8aa08e6795376::_04
3.92% msgsend-pipes.s librustrt.so [.] upcall_exchange_malloc
3.84% msgsend-pipes.s librustrt.so [.] memory_region::add_alloc()
3.20% msgsend-pipes.s libc-2.13.so [.] __malloc
2.05% msgsend-pipes.s libc-2.13.so [.] _int_malloc
1.89% msgsend-pipes.s libc-2.13.so [.] cfree
1.75% msgsend-pipes.s librustrt.so [.] upcall_cmp_type
1.73% msgsend-pipes.s libc-2.13.so [.] _int_free
1.72% msgsend-pipes.s librustrt.so [.] upcall_call_shim_on_c_stack
1.72% msgsend-pipes.s librustrt.so [.] upcall_new_stack
1.69% msgsend-pipes.s librustrt.so [.] upcall_s_exchange_malloc
1.63% msgsend-pipes.s librustrt.so [.] shape::ctxt<shape::data<shape::cmp, shape::ptr_pair> >::walk()
1.48% msgsend-pipes.s libcore-c3ca5d77d81b46c1-0.4.so [.] pipes::PacketHeader::meth_8308::mark_blocked::_b44f2d5a5a715c0::_04
1.46% msgsend-pipes.s msgsend-pipes.stage2-x86_64-unknown-linux-gnu [.] glue_drop_2605
1.44% msgsend-pipes.s librustrt.so [.] shape::data<shape::cmp, shape::ptr_pair>::walk_tag1(shape::tag_info&)
1.43% msgsend-pipes.s msgsend-pipes.stage2-x86_64-unknown-linux-gnu [.] glue_drop_3360
1.33% msgsend-pipes.s librustrt.so [.] upcall_exchange_free
1.27% msgsend-pipes.s librustrt.so [.] shape::size_of::compute_tag_size(shape::tag_info&)
1.14% msgsend-pipes.s msgsend-pipes.stage2-x86_64-unknown-linux-gnu [.] pipes::entangle_3316::_8e8ac5203354b277::_00
1.12% msgsend-pipes.s libcore-c3ca5d77d81b46c1-0.4.so [.] pipes::atomic_sub_rel::_6c3ce3f546aa19b::_04
1.06% msgsend-pipes.s msgsend-pipes.stage2-x86_64-unknown-linux-gnu [.] glue_drop_3391
0.93% msgsend-pipes.s librustrt.so [.] record_sp_limit
0.88% msgsend-pipes.s librustrt.so [.] upcall_del_stack
0.88% msgsend-pipes.s librustrt.so [.] rust_task_ref
0.88% msgsend-pipes.s libcore-c3ca5d77d81b46c1-0.4.so [.] pipes::try_recv::dtor_7109::_345c3b1352f32af::_04
0.88% msgsend-pipes.s librustrt.so [.] shape_cmp_type
0.84% msgsend-pipes.s msgsend-pipes.stage2-x86_64-unknown-linux-gnu [.] glue_drop_2557
0.83% msgsend-pipes.s librustrt.so [.] reuse_valgrind_stack(stk_seg*, unsigned char*)
0.78% msgsend-pipes.s libc-2.13.so [.] __memset_sse2
0.78% msgsend-pipes.s msgsend-pipes.stage2-x86_64-unknown-linux-gnu [.] glue_drop_2639
0.75% msgsend-pipes.s libcore-c3ca5d77d81b46c1-0.4.so [.] pipes::swap_state_rel::_2dd27e72b8de275a::_04
0.74% msgsend-pipes.s librustrt.so [.] upcall_s_cmp_type
0.74% msgsend-pipes.s msgsend-pipes.stage2-x86_64-unknown-linux-gnu [.] pipes::dtor_2614::_709088e56e74484::_00
0.73% msgsend-pipes.s librustrt.so [.] __morestack
0.72% msgsend-pipes.s librustrt.so [.] rust_task_deref
## RUST_MIN_STACK=1000000 RUST_BENCH=1 perf record x86_64-unknown-linux-gnu/test/bench/msgsend-pipes.stage2-x86_64-unknown-linux-gnu
Count is 100000000
Test took 1.71655 seconds
Throughput=582565.195637 per sec
[ perf record: Woken up 7 times to write data ]
[ perf record: Captured and wrote 2.072 MB perf.data (~90531 samples) ]
# c43426e35ba89fe52cd48b70d240f5014937f71f
## RUST_BENCH=1 perf record x86_64-unknown-linux-gnu/test/bench/msgsend-pipes.stage2-x86_64-unknown-linux-gnu
Count is 100000000
Test took 1.9476 seconds
Throughput=513441.188440 per sec
[ perf record: Woken up 6 times to write data ]
[ perf record: Captured and wrote 1.969 MB perf.data (~86045 samples) ]
Count is 100000000
Test took 2.4710 seconds
Throughput=404701.21965 per sec
[ perf record: Woken up 7 times to write data ]
[ perf record: Captured and wrote 2.045 MB perf.data (~89335 samples) ]
Count is 100000000
Test took 2.4917 seconds
Throughput=401337.085967 per sec
[ perf record: Woken up 7 times to write data ]
[ perf record: Captured and wrote 2.095 MB perf.data (~91519 samples) ]
Count is 100000000
Test took 2.4795 seconds
Throughput=403305.005798 per sec
[ perf record: Woken up 4 times to write data ]
[ perf record: Captured and wrote 1.947 MB perf.data (~85073 samples) ]
## perf report
12.86% msgsend-pipes.s [dm_crypt] [k] 0xffffffff8103804a
11.78% msgsend-pipes.s librustrt.so [.] upcall_new_stack
7.16% msgsend-pipes.s librustrt.so [.] upcall_del_stack
7.08% msgsend-pipes.s msgsend-pipes.stage2-x86_64-unknown-linux-gnu [.] __morestack
4.11% msgsend-pipes.s msgsend-pipes.stage2-x86_64-unknown-linux-gnu [.] pipes::__extensions__::send_3799::_c71b99c5591e81fa::_00
3.98% msgsend-pipes.s msgsend-pipes.stage2-x86_64-unknown-linux-gnu [.] server::_3f2c7a7d1dc77321::_00
3.94% msgsend-pipes.s libcore-c3ca5d77d81b46c1-0.4.so [.] pipes::__extensions__::meth_8648::unblock::_9d8aa08e6795376::_04
3.47% msgsend-pipes.s librustrt.so [.] reuse_valgrind_stack(stk_seg*, unsigned char*)
2.83% msgsend-pipes.s libcore-c3ca5d77d81b46c1-0.4.so [.] __morestack
2.60% msgsend-pipes.s libc-2.13.so [.] memcpy
2.49% msgsend-pipes.s msgsend-pipes.stage2-x86_64-unknown-linux-gnu [.] glue_drop_2606
2.19% msgsend-pipes.s librustrt.so [.] check_stack_canary(stk_seg*)
2.08% msgsend-pipes.s libc-2.13.so [.] __malloc
1.99% msgsend-pipes.s librustrt.so [.] upcall_exchange_malloc
1.64% msgsend-pipes.s msgsend-pipes.stage2-x86_64-unknown-linux-gnu [.] pipes::__extensions__::header_2887::_6431572c45d2faa7::_00
1.48% msgsend-pipes.s libc-2.13.so [.] _int_malloc
1.47% msgsend-pipes.s msgsend-pipes.stage2-x86_64-unknown-linux-gnu [.] glue_drop_2602
1.37% msgsend-pipes.s librustrt.so [.] memory_region::add_alloc()
1.34% msgsend-pipes.s libc-2.13.so [.] cfree
1.32% msgsend-pipes.s libcore-c3ca5d77d81b46c1-0.4.so [.] pipes::__extensions__::meth_8645::mark_blocked::_67af49e89aa127b5::_04
1.29% msgsend-pipes.s librustrt.so [.] get_sp_limit
1.28% msgsend-pipes.s msgsend-pipes.stage2-x86_64-unknown-linux-gnu [.] glue_drop_2704
1.16% msgsend-pipes.s librustrt.so [.] record_sp_limit
1.14% msgsend-pipes.s librustrt.so [.] upcall_call_shim_on_c_stack
0.98% msgsend-pipes.s libcore-c3ca5d77d81b46c1-0.4.so [.] pipes::atomic_add_acq::_6c3ce3f546aa19b::_04
0.89% msgsend-pipes.s librustrt.so [.] upcall_exchange_free
0.78% msgsend-pipes.s libc-2.13.so [.] _int_free
0.73% msgsend-pipes.s libcore-c3ca5d77d81b46c1-0.4.so [.] pipes::atomic_sub_rel::_6c3ce3f546aa19b::_04
0.69% msgsend-pipes.s librustrt.so [.] memcpy@plt
0.69% msgsend-pipes.s librustrt.so [.] upcall_s_exchange_malloc
0.64% msgsend-pipes.s librustrt.so [.] memory_region::dec_alloc()
0.57% msgsend-pipes.s libcore-c3ca5d77d81b46c1-0.4.so [.] rt::rt_exchange_malloc::_dc8e3bd67e109af5::_04
0.54% msgsend-pipes.s msgsend-pipes.stage2-x86_64-unknown-linux-gnu [.] glue_drop_3466
0.53% msgsend-pipes.s librustrt.so [.] __morestack
0.53% msgsend-pipes.s msgsend-pipes.stage2-x86_64-unknown-linux-gnu [.] upcall_del_stack@plt
0.51% msgsend-pipes.s msgsend-pipes.stage2-x86_64-unknown-linux-gnu [.] glue_drop_3130
## RUST_MIN_STACK=1000000 RUST_BENCH=1 perf record x86_64-unknown-linux-gnu/test/bench/msgsend-pipes.stage2-x86_64-unknown-linux-gnu
Count is 100000000
Test took 1.6226 seconds
Throughput=616297.788182 per sec
[ perf record: Woken up 6 times to write data ]
[ perf record: Captured and wrote 2.039 MB perf.data (~89091 samples) ]
inux-gnu
Count is 100000000
Test took 1.6114 seconds
Throughput=620595.981343 per sec
[ perf record: Woken up 5 times to write data ]
[ perf record: Captured and wrote 1.967 MB perf.data (~85918 samples) ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment