2006�N07��21��

PHP�����o�͂̃p�t�H�[�}���X��r�ɂ‚���

�O����C�ɂȂ��Ă����̂ł����APHP�ŕ������o�͂���ۂɁA�ǂ̂��炢�p�t�H�[�}���X�̍����o��̂��A���낢��Ȏ�@�Ŏ����Ă���L�������‚��܂����B

�V���O���N�I�[�g���_�u���N�I�[�g���q�A�h�L�������g��printf�֐�
(����<�x��)

�Ƃ������ɂȂ�悤�ł��B��͂�A���@�\�Ȃ��̂قǒx���Ȃ�悤�ł��ˁB

���u���E�U�ւ̏o�́�
Single quotes: 2,813 ms
...with concatenation: 1,179 ms
Double quotes: 5,180 ms
...with concatenation: 3,937 ms
heredoc: 7,300 ms
...with concatenation: 6,288 ms
printf: 9,527 ms
...with concatenation: 8,564 ms
(with concatenation �́A.���g�p���Ĉꕔ��ϐ��ɒu���������ꍇ�ł�)

���o�̓o�b�t�@�ւ̏o�́�
Single quotes: 8 ms
...with concatenation: 38 ms
Double quotes: 8 ms
...with concatenation: 47 ms
heredoc: 17 ms
...with concatenation: 49 ms
printf: 54 ms
...with concatenation: 52 ms

�O���t�͈ȉ��ł��B
http://i3x171um.com/output_benchmarks/ob.gif

�\�[�X�R�[�h�����J����Ă��܂��B
http://i3x171um.com/output_benchmarks/ob.txt


�Q�l�FPHP�h�L�������g��echo�֐��̃y�[�W(phpnet at i3x171um dot com
��)
posted by PHP���S��@blogger at 00:00| PHP | ̃uO̓ǎ҂ɂȂ | XV`FbN