#40640 [NEW]: Performace issues with 5.2.1

Ask a Question related to PHP Bugs, Design and Development.

  1. #1

    Default #40640 [NEW]: Performace issues with 5.2.1

    From: info at a-wing dot co dot uk
    Operating system: CentOS 4.4
    PHP version: 5.2.1
    PHP Bug Type: Performance problem
    Bug description: Performace issues with 5.2.1

    Description:
    ------------
    After compiling PHP 5.2.1 on our devel boxes we find a performance hit
    compared to 5.2.0 as can be seen in the following bench.php results:

    PHP 5.2.0
    ---------
    simple 0.269
    simplecall 0.472
    simpleucall 0.829
    simpleudcall 0.952
    mandel 1.043
    mandel2 1.203
    ackermann(7) 0.859
    ary(50000) 0.049
    ary2(50000) 0.041
    ary3(2000) 0.478
    fibo(30) 2.093
    hash1(50000) 0.088
    hash2(500) 0.095
    heapsort(20000) 0.279
    matrix(20) 0.245
    nestedloop(12) 0.458
    sieve(30) 0.220
    strcat(200000) 0.038
    ------------------------
    Total 9.713


    PHP 5.2.1
    ---------
    simple 0.537
    simplecall 0.957
    simpleucall 1.429
    simpleudcall 1.467
    mandel 1.988
    mandel2 2.506
    ackermann(7) 1.646
    ary(50000) 0.087
    ary2(50000) 0.073
    ary3(2000) 0.983
    fibo(30) 3.744
    hash1(50000) 0.176
    hash2(500) 0.194
    heapsort(20000) 0.541
    matrix(20) 0.446
    nestedloop(12) 0.808
    sieve(30) 0.422
    strcat(200000) 0.422
    ------------------------
    Total 18.427

    I have tried with GCC 4.1.0 and 3.4.6 with similar results. Both versions
    were built with the same configuration options and CFLAGS (tried
    -march=i686 -msse2 and just leaving it to defaults with similar difference
    in speed).

    I especially turn your attention to the strcat score which is terribly
    slow in 5.2.1.

    I have also benched 5.2.2dev using the 1:30am GMT build on the 26th with
    the following results:

    simple 0.330
    simplecall 0.506
    simpleucall 0.805
    simpleudcall 0.921
    mandel 1.091
    mandel2 1.459
    ackermann(7) 1.028
    ary(50000) 0.057
    ary2(50000) 0.048
    ary3(2000) 0.642
    fibo(30) 2.479
    hash1(50000) 0.107
    hash2(500) 0.127
    heapsort(20000) 0.358
    matrix(20) 0.294
    nestedloop(12) 0.605
    sieve(30) 0.275
    strcat(200000) 0.162
    ------------------------
    Total 11.293

    Better than 5.2.1, but still slower than 5.2.0.

    Reproduce code:
    ---------------
    [url]http://cvs.php.net/viewvc.cgi/ZendEngine2/bench.php?view=markup[/url]

    Expected result:
    ----------------
    Minimal difference in speed, maybe even a speed increase in 5.2.1.

    Actual result:
    --------------
    5.2.1 takes twice as long compared to 5.2.0

    --
    Edit bug report at [url]http://bugs.php.net/?id=40640&edit=1[/url]
    --
    Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=40640&r=trysnapshot44[/url]
    Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=40640&r=trysnapshot52[/url]
    Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=40640&r=trysnapshot60[/url]
    Fixed in CVS: [url]http://bugs.php.net/fix.php?id=40640&r=fixedcvs[/url]
    Fixed in release: [url]http://bugs.php.net/fix.php?id=40640&r=alreadyfixed[/url]
    Need backtrace: [url]http://bugs.php.net/fix.php?id=40640&r=needtrace[/url]
    Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=40640&r=needscript[/url]
    Try newer version: [url]http://bugs.php.net/fix.php?id=40640&r=oldversion[/url]
    Not developer issue: [url]http://bugs.php.net/fix.php?id=40640&r=support[/url]
    Expected behavior: [url]http://bugs.php.net/fix.php?id=40640&r=notwrong[/url]
    Not enough info: [url]http://bugs.php.net/fix.php?id=40640&r=notenoughinfo[/url]
    Submitted twice: [url]http://bugs.php.net/fix.php?id=40640&r=submittedtwice[/url]
    register_globals: [url]http://bugs.php.net/fix.php?id=40640&r=globals[/url]
    PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=40640&r=php3[/url]
    Daylight Savings: [url]http://bugs.php.net/fix.php?id=40640&r=dst[/url]
    IIS Stability: [url]http://bugs.php.net/fix.php?id=40640&r=isapi[/url]
    Install GNU Sed: [url]http://bugs.php.net/fix.php?id=40640&r=gnused[/url]
    Floating point limitations: [url]http://bugs.php.net/fix.php?id=40640&r=float[/url]
    No Zend Extensions: [url]http://bugs.php.net/fix.php?id=40640&r=nozend[/url]
    MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=40640&r=mysqlcfg[/url]
    info at a-wing dot co dot uk Guest

  2. Similar Questions and Discussions

    1. Sql performace - why soo long ?
      Hi there :) I don't understand why following '3' statements are SOO different. We run latest PgSQL, OpenBSD 3.4, AMD XP 2000+ and plenty of...
    2. Gnome 2 on Sun Blade100: Performace?
      On 30 Jul 2003, Greg Menke wrote: Robert Schulz <bertos@gmx.net> writes: The Beta versions of GNOME 2 were a dog. However, I'm pleased to...
    3. Performace question
      scott wrote: Is that right? -am © 2003
    4. Help: large "cache buffers lru chain", large performace degradation
      Hello All, I am running Oracle 7.3.2 on alpha. It runs Oracle Web server and there are around 10000 hits per day. All the data is stored in the...
    5. Performace with 500,000 tables
      I'd have to question any design for a database that requires half a million tables. Point of fact, I can't imagine any circumstances when that...
  3. #2

    Default #40640 [Opn->Bgs]: Performance issues with 5.2.1

    ID: 40640
    User updated by: info at a-wing dot co dot uk
    -Summary: Performace issues with 5.2.1
    Reported By: info at a-wing dot co dot uk
    -Status: Open
    +Status: Bogus
    Bug Type: Performance problem
    Operating System: CentOS 4.4
    PHP Version: 5.2.1
    New Comment:

    Several people on the internals list have tried and can't reproduce the
    problem so it must be something I am doing wrong.

    Closing as Bogus.


    Previous Comments:
    ------------------------------------------------------------------------

    [2007-02-26 14:51:48] info at a-wing dot co dot uk

    Description:
    ------------
    After compiling PHP 5.2.1 on our devel boxes we find a performance hit
    compared to 5.2.0 as can be seen in the following bench.php results:

    PHP 5.2.0
    ---------
    simple 0.269
    simplecall 0.472
    simpleucall 0.829
    simpleudcall 0.952
    mandel 1.043
    mandel2 1.203
    ackermann(7) 0.859
    ary(50000) 0.049
    ary2(50000) 0.041
    ary3(2000) 0.478
    fibo(30) 2.093
    hash1(50000) 0.088
    hash2(500) 0.095
    heapsort(20000) 0.279
    matrix(20) 0.245
    nestedloop(12) 0.458
    sieve(30) 0.220
    strcat(200000) 0.038
    ------------------------
    Total 9.713


    PHP 5.2.1
    ---------
    simple 0.537
    simplecall 0.957
    simpleucall 1.429
    simpleudcall 1.467
    mandel 1.988
    mandel2 2.506
    ackermann(7) 1.646
    ary(50000) 0.087
    ary2(50000) 0.073
    ary3(2000) 0.983
    fibo(30) 3.744
    hash1(50000) 0.176
    hash2(500) 0.194
    heapsort(20000) 0.541
    matrix(20) 0.446
    nestedloop(12) 0.808
    sieve(30) 0.422
    strcat(200000) 0.422
    ------------------------
    Total 18.427

    I have tried with GCC 4.1.0 and 3.4.6 with similar results. Both
    versions were built with the same configuration options and CFLAGS
    (tried -march=i686 -msse2 and just leaving it to defaults with similar
    difference in speed).

    I especially turn your attention to the strcat score which is terribly
    slow in 5.2.1.

    I have also benched 5.2.2dev using the 1:30am GMT build on the 26th
    with the following results:

    simple 0.330
    simplecall 0.506
    simpleucall 0.805
    simpleudcall 0.921
    mandel 1.091
    mandel2 1.459
    ackermann(7) 1.028
    ary(50000) 0.057
    ary2(50000) 0.048
    ary3(2000) 0.642
    fibo(30) 2.479
    hash1(50000) 0.107
    hash2(500) 0.127
    heapsort(20000) 0.358
    matrix(20) 0.294
    nestedloop(12) 0.605
    sieve(30) 0.275
    strcat(200000) 0.162
    ------------------------
    Total 11.293

    Better than 5.2.1, but still slower than 5.2.0.

    Reproduce code:
    ---------------
    [url]http://cvs.php.net/viewvc.cgi/ZendEngine2/bench.php?view=markup[/url]

    Expected result:
    ----------------
    Minimal difference in speed, maybe even a speed increase in 5.2.1.

    Actual result:
    --------------
    5.2.1 takes twice as long compared to 5.2.0


    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=40640&edit=1[/url]
    info at a-wing dot co dot uk Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139