SpeedTest

Testa <[email protected]> Wed, 10 Dec 2014 11:26:03 +0000
Newsgroups gmane.linux.gentoo.user.hungarian
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------070403050602010205080606
Content-Type: multipart/alternative;
 boundary="------------070105010404070804060906"


--------------070105010404070804060906
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hello Lista tagok,

Mivel gondoltam nem hagyom haldokolni a list=C3=A1t. Mell=C3=A9 el=C3=A9g=
g=C3=A9 egy gentoo
k=C3=B6zeli projecten dolgozok szabad 25 percembe. Ez=C3=A9rt kik=C3=A9re=
m a
v=C3=A9lem=C3=A9nyeteket.

A dolog l=C3=A9nyege egy szeml=C3=A9ltet=C3=A9s.

Melyik programoz=C3=A1si nyelv milyen sebess=C3=A9ggel dolgozik.

Teh=C3=A1t fogunk egy long_integert majd 5 for ciklusba 90, 89, 88, 87, 8=
6
szor v=C3=A9gig forgatjuk. Elvileg ennek nincs =C3=A9rtelme. Vagy m=C3=A9=
gis ? Mindenki
kipr=C3=B3b=C3=A1lhatja a mell=C3=A9kelt 4 p=C3=A9lda f=C3=A1jlban.

K=C3=A9rhetn=C3=A9k v=C3=A9lem=C3=A9nyt ?


Ahogy =C3=A9n ezt terveztem:


python test:

time python speedtest.py


php test:

time php speedtest.php


Nodejs javascript test (lehet rhino-val is tesztelni de ne lep=C5=91dj me=
g az
eredm=C3=A9nyen az esetben ):

time node speedtest.js


c optimaliz=C3=A1l=C3=A1s n=C3=A9lk=C3=BCl :

gcc -o s speedtest.c

time ./s


c -O1 optimaliz=C3=A1l=C3=A1ssal :

gcc -O1 -o so1 speedtest.c

time ./so1


c -O2 optimaliz=C3=A1l=C3=A1ssal :

gcc -O2 -o so2 speedtest.c

time ./so2


c -O3 optimaliz=C3=A1l=C3=A1ssal (nagy val=C3=B3sz=C3=ADn=C5=B1s=C3=A9gge=
l ez m=C3=A1r felesleges):

gcc -O3 -o so3 speedtest.c

time ./so3



--------------070105010404070804060906
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html>
  <head>

    <meta http-equiv=3D"content-type" content=3D"text/html; charset=3Dutf=
-8">
  </head>
  <body bgcolor=3D"#FFFFFF" text=3D"#000000">
    Hello Lista tagok,<br>
    <meta http-equiv=3D"content-type" content=3D"text/html; charset=3Dutf=
-8">
    <p style=3D"margin-bottom: 0in; line-height: 100%">Mivel gondoltam ne=
m
      hagyom haldokolni a list=C3=A1t. Mell=C3=A9 el=C3=A9gg=C3=A9 egy ge=
ntoo k=C3=B6zeli
      projecten dolgozok szabad 25 percembe. Ez=C3=A9rt kik=C3=A9rem a
      v=C3=A9lem=C3=A9nyeteket. </p>
    <p style=3D"margin-bottom: 0in; line-height: 100%">A dolog l=C3=A9nye=
ge egy
      szeml=C3=A9ltet=C3=A9s. </p>
    <p style=3D"margin-bottom: 0in; line-height: 100%">Melyik programoz=C3=
=A1si
      nyelv milyen sebess=C3=A9ggel dolgozik.</p>
    <p style=3D"margin-bottom: 0in; line-height: 100%">Teh=C3=A1t fogunk =
egy
      long_integert majd 5 for ciklusba 90, 89, 88, 87, 86 szor v=C3=A9gi=
g
      forgatjuk. Elvileg ennek nincs =C3=A9rtelme. Vagy m=C3=A9gis ? Mind=
enki
      kipr=C3=B3b=C3=A1lhatja a mell=C3=A9kelt 4 p=C3=A9lda f=C3=A1jlban.=
 </p>
    <p style=3D"margin-bottom: 0in; line-height: 100%">K=C3=A9rhetn=C3=A9=
k
      v=C3=A9lem=C3=A9nyt ? </p>
    <p style=3D"margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style=3D"margin-bottom: 0in; line-height: 100%">Ahogy =C3=A9n ezt
      terveztem:</p>
    <p style=3D"margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style=3D"margin-bottom: 0in; line-height: 100%">python test:</p>
    <p style=3D"margin-bottom: 0in; line-height: 100%">time python
      speedtest.py</p>
    <p style=3D"margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style=3D"margin-bottom: 0in; line-height: 100%">php test:</p>
    <p style=3D"margin-bottom: 0in; line-height: 100%">time php
      speedtest.php</p>
    <p style=3D"margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style=3D"margin-bottom: 0in; line-height: 100%">Nodejs javascript
      test (lehet rhino-val is tesztelni de ne lep=C5=91dj meg az eredm=C3=
=A9nyen
      az esetben ):</p>
    <p style=3D"margin-bottom: 0in; line-height: 100%">time node
      speedtest.js</p>
    <p style=3D"margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style=3D"margin-bottom: 0in; line-height: 100%">c optimaliz=C3=A1l=
=C3=A1s
      n=C3=A9lk=C3=BCl :</p>
    <p style=3D"margin-bottom: 0in; line-height: 100%">gcc -o s
      speedtest.c</p>
    <p style=3D"margin-bottom: 0in; line-height: 100%">time ./s</p>
    <p style=3D"margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style=3D"margin-bottom: 0in; line-height: 100%">c -O1
      optimaliz=C3=A1l=C3=A1ssal :</p>
    <p style=3D"margin-bottom: 0in; line-height: 100%">gcc -O1 -o so1
      speedtest.c</p>
    <p style=3D"margin-bottom: 0in; line-height: 100%">time ./so1</p>
    <p style=3D"margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style=3D"margin-bottom: 0in; line-height: 100%">c -O2
      optimaliz=C3=A1l=C3=A1ssal :</p>
    <p style=3D"margin-bottom: 0in; line-height: 100%">gcc -O2 -o so2
      speedtest.c</p>
    <p style=3D"margin-bottom: 0in; line-height: 100%">time ./so2</p>
    <p style=3D"margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style=3D"margin-bottom: 0in; line-height: 100%">c -O3
      optimaliz=C3=A1l=C3=A1ssal (nagy val=C3=B3sz=C3=ADn=C5=B1s=C3=A9gge=
l ez m=C3=A1r felesleges):</p>
    <p style=3D"margin-bottom: 0in; line-height: 100%">gcc -O3 -o so3
      speedtest.c</p>
    <p style=3D"margin-bottom: 0in; line-height: 100%">time ./so3</p>
    <title></title>
    <meta name=3D"generator" content=3D"LibreOffice 4.2.6.3 (Linux)">
    <style type=3D"text/css">
	<!--
		@page { margin: 0.79in }
		p { margin-bottom: 0.1in; line-height: 120% }
	-->
	</style><br>
  </body>
</html>

--------------070105010404070804060906--

--------------070403050602010205080606
Content-Type: text/x-csrc;
 name="speedtest.c"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="speedtest.c"

#include <stdio.h>
#include <stdint.h>
int main(void)
{

    int ia, ib, ic, id, ie;
    int64_t i = 0;
    for (ia = 1 ; ia < 90; ia++){
        for (ib = 1 ; ib < 90; ib++){
            for (ic = 1 ; ic < 89; ic++){
                  for (id = 1 ; id < 88; id++){
                      for (ie = 1 ; ie < 87; ie++){
                          i++;
                    }
                }
            }
        }
    }
    printf("osszesen: %ld \n", i);
    return 0;
}
--------------070403050602010205080606
Content-Type: application/javascript;
 name="speedtest.js"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="speedtest.js"

var i = 0;
    for (ia = 1 ; ia < 90; ia++){
        for (ib = 1 ; ib < 90; ib++){
            for (ic = 1 ; ic < 89; ic++){
                  for (id = 1 ; id < 88; id++){
                      for (ie = 1 ; ie < 87; ie++){
                          i++;
                    }
                }
            }
        }
    }
console.log("osszesen:"+ i.toString());
--------------070403050602010205080606
Content-Type: application/x-php;
 name="speedtest.php"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="speedtest.php"

PD9waHAKJGkgPSAwOwogICAgZm9yICgkaWEgPSAxIDsgJGlhIDwgOTA7ICRpYSsrKXsKICAg
ICAgICBmb3IgKCRpYiA9IDEgOyAkaWIgPCA5MDsgJGliKyspewogICAgICAgICAgICBmb3Ig
KCRpYyA9IDEgOyAkaWMgPCA4OTsgJGljKyspewogICAgICAgICAgICAgICAgICBmb3IgKCRp
ZCA9IDEgOyAkaWQgPCA4ODsgJGlkKyspewogICAgICAgICAgICAgICAgICAgICAgZm9yICgk
aWUgPSAxIDsgJGllIDwgODc7ICRpZSsrKXsKICAgICAgICAgICAgICAgICAgICAgICAgICAk
aSsrOwogICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIH0KICAgICAgICAg
ICAgfQogICAgICAgIH0KICAgIH0KZWNobygib3NzemVzZW46ICIuICRpKTsKPz4=
--------------070403050602010205080606
Content-Type: text/x-python;
 name="speedtest.py"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="speedtest.py"

i = 0


for a in range(1, 90):
        for b in range(1,89):
                for c in range(1,88):
                        for d in range(1,87):
                                for e in range(1,86):
                                        i=i+1
print (str(i))
--------------070403050602010205080606--