View Full Version : Deleted...
Webmaster Scripts
01-27-2002, 09:01 PM
What the fuck is going here?
Why my username was delete??
Took 20 minutes to signup again :(
Ok, it's still me - Vovan :) Couldn't register that name, cause some one already took it :(
toker
01-27-2002, 09:16 PM
Prob because your site is full of rape and illegal shit. :eek:
Webmaster Scripts
01-27-2002, 10:05 PM
You mean sitelist.html page?
Hehe, it's just urls to let webmasters know where my scripts are installed.
So that they can contact webmasters and find out something about my scripts.
I don't promote that page to surfers and don't say anything about rape and other stuff...
toker
01-27-2002, 11:30 PM
I give you props for removing that rape stuff in the script caps. :)
EasyCJ 7
Requirements:
Unix type hosts with mysql. G++, SSH and FTP access.
We will setup Easy CJ for you on any host you wish for FREE!
Fat Ass, you're saying EasyCJ written in C, but G++ is Gnu C++ Compiler. So why you lie to your clients? :D
Vovan is a cool guy, with some great scripts
PeepNTom
01-28-2002, 09:28 PM
BUMP....
I would like to hear the answer to that question because I was thinking about buying EasyCJ 7.
do tell....
Webmaster Scripts
01-29-2002, 12:14 AM
I don't lie. The script is written in C++.
The reason is why i just write C is:
1. It's easier to write
2. C++ was made from C and the difference in syntaxies and some functions only, but not the speed.
3. G++ included in standart package of GNU Compiler that can compile C and C++ sources.
4. For some marketing purposes.
ProgGod
01-29-2002, 02:08 AM
Why the hell would it matter if it was in C or C++, the last time there was a compiler that just compiled on or the other was in the 80s :)
C++ is just an extension of C, geesh.
C++ works slower than C, thats a known fact. EasjCJ Webmaster knows that and lying to customers saying its written in C.
Also C++ uses MySQL++ Api, which is using more memory and system resources than regular C, because it uses OOP.
in Big projects, speed is not much different, because OOP uses system resources good when project is enough big. But in small projects, naaa.
Webmaster Scripts
01-29-2002, 10:24 PM
Hey XP,
I guess you can only talk and nothing more. Who told you C is faster? You also want to say C is faster than PHP? :) Make simple prog on C that outputs Hello and do the same on PHP. PHP is faster 7 times! But, php is not good to make big maths and it uses memory. BUT IT IS FASTER.
Or, lets do this:
1. Get UCJ and Easy CJ and test them on one server. Will test in and out progs. Do you run UCJ on any of your servers?
2. If results will be the same, you will appologise here. If C++ slower, i will.
So?
Webmaster Scripts
01-29-2002, 10:28 PM
And also - why you talked about Mysql++ and C++?? My in and out progs do not use Mysql... Next time, please, think before you say...
Webmaster Scripts
01-29-2002, 10:58 PM
The only problem i see between testing UCJ and EasyCJ is the features both scripts have are not the same. So, the results will not be sharp. Anyway, XP, i'm waiting for you...
in C, printf() , in C++ cout. which works faster dude? :=)
cout uses operator overloading, and printf uses system calls. Its clear, C is lower language with more speed.
Sure you can use C in C++, but I don't believe you're doing that. If that so, why you don't write it completely in C? :=)
I thought you're using MySQL, because your old script was using MySQL, and writing a C++ in/out to a Php/MySQL script is very very easy (STL Rocks heheh)
You said PHP works faster when typing HELLO to screen, it can be with MOD_PHP which caches script into memory, and run it from memory next time. Its possible for C/C++ too with FastCGI Technology.
PHP executable is about 1.5Mb, which takes more time from a small C cgi application ie. 20kb. PHP Also uses more memory, while C application uses very very less. Forgot all and remember PHP is a scripting language, C is real programming language LOL :D
Become a real russian, and learn real programming dude! Russians are known as programming masters!
Arthur
01-30-2002, 03:35 AM
What's a syntaxi? Where can I get one?
Core-Dump
01-30-2002, 08:17 AM
Write the simplest script that just outputs "Hello World" in php,c and c++
Php would be fast because the input/output is fast, but not database or file proccessing, so it will be much slower on complicated applications.
C++ executable would be over 500kb, C executable would be about 3-4kb. Now which script do you think would be loaded faster to memory and take less time to execute and take less resources?
I vote for the biggest file as it probably has the most nifty , you just cant live without them, features!!
basschick
01-30-2002, 09:23 AM
turf - *LOL*
toker
01-30-2002, 09:55 AM
Thats what she said too bigger is better.. :D
Webmaster Scripts
02-10-2002, 02:35 PM
Ok, guys.
Just came back from my business trip... XP still didn't contact me. So had to do testing on my own.
Here are the results. Tests were done with ApacheBench, Version 1.3c <$Revision: 1.45 $> apache-1.3
with -n 100 -c 10
Tests were going on the same server.
I made 3 tryes for c.cgi and out.cgi (ucj and easycj out files)
ucj try 1
---------
Document Path: /cgi-bin/ucj/c.cgi
Document Length: 214 bytes
Concurrency Level: 10
Time taken for tests: 2.524 seconds
Complete requests: 100
Failed requests: 82
(Connect: 0, Length: 82, Exceptions: 0)
Non-2xx responses: 103
Total transferred: 50524 bytes
HTML transferred: 21415 bytes
Requests per second: 39.62
Transfer rate: 20.02 kb/s received
Connnection Times (ms)
min avg max
Connect: 0 14 97
Processing: 65 216 404
Total: 65 230 501
ucj try 2
---------
Document Path: /cgi-bin/ucj/c.cgi
Document Length: 210 bytes
Concurrency Level: 10
Time taken for tests: 3.397 seconds
Complete requests: 100
Failed requests: 97
(Connect: 0, Length: 97, Exceptions: 0)
Non-2xx responses: 100
Total transferred: 48941 bytes
HTML transferred: 20808 bytes
Requests per second: 29.44
Transfer rate: 14.41 kb/s received
Connnection Times (ms)
min avg max
Connect: 0 18 106
Processing: 51 307 1077
Total: 51 325 1183
ucj try 3
---------
Document Path: /cgi-bin/ucj/c.cgi
Document Length: 206 bytes
Concurrency Level: 10
Time taken for tests: 2.068 seconds
Complete requests: 100
Failed requests: 76
(Connect: 0, Length: 76, Exceptions: 0)
Non-2xx responses: 102
Total transferred: 50331 bytes
HTML transferred: 21367 bytes
Requests per second: 48.36
Transfer rate: 24.34 kb/s received
Connnection Times (ms)
min avg max
Connect: 0 10 87
Processing: 64 178 309
Total: 64 188 396
*****************************************
ecj try 1
---------
Document Path: /cgi-bin/ecj/out.cgi
Document Length: 221 bytes
Concurrency Level: 10
Time taken for tests: 2.466 seconds
Complete requests: 100
Failed requests: 75
(Connect: 0, Length: 75, Exceptions: 0)
Non-2xx responses: 103
Total transferred: 52997 bytes
HTML transferred: 23900 bytes
Requests per second: 40.55
Transfer rate: 21.49 kb/s received
Connnection Times (ms)
min avg max
Connect: 0 13 67
Processing: 53 209 754
Total: 53 222 821
ecj try 2
---------
Document Path: /cgi-bin/ecj/out.cgi
Document Length: 236 bytes
Concurrency Level: 10
Time taken for tests: 2.125 seconds
Complete requests: 100
Failed requests: 35
(Connect: 0, Length: 35, Exceptions: 0)
Non-2xx responses: 102
Total transferred: 52148 bytes
HTML transferred: 23571 bytes
Requests per second: 47.06
Transfer rate: 24.54 kb/s received
Connnection Times (ms)
min avg max
Connect: 0 11 50
Processing: 38 183 358
Total: 38 194 408
ecj try 3
---------
Document Path: /cgi-bin/ecj/out.cgi
Document Length: 221 bytes
Concurrency Level: 10
Time taken for tests: 2.765 seconds
Complete requests: 100
Failed requests: 80
(Connect: 0, Length: 80, Exceptions: 0)
Non-2xx responses: 100
Total transferred: 51388 bytes
HTML transferred: 23264 bytes
Requests per second: 36.17
Transfer rate: 18.59 kb/s received
Connnection Times (ms)
min avg max
Connect: 0 16 100
Processing: 41 172 327
Total: 41 188 427
As you can see, there is no difference in speed or something. The averages are the same. It means that there is no difference in C and C++ in speed.
2XP, printf and cout working with the same speed. Make simple progs for outputing 'Hello' and then do the tests. Compilators are clever and they know what to compile and what not, also, printf and cout are just commands, but in a machine style (compiled) they look the same. And both C and C++ codes will be of the same size - 4kb. I will go further and give you codes to test.
*C
#include "stdio.h"
int main()
{
printf("Hello");
}
*C++
#include "iostream.h"
void main()
{
cout << "Hello";
}
Compile them and see the results yourself!
Hope you understand now.
You never understand Vovan.
Cout and Printf is not same commands. printf uses low level OS calls to display data, cout is similar but not same.
Also your tests shows your script is faster than UCJ (less failed connections?). But no way. ECJ has so many features, more features = slower speed thats a known fact.
4kb is smallest executable made by GCC, you can't make it 1Kb even you only print a line. size doesn't matter, c++ uses a bit more memory than C, you know operator overloading, templates etc huh?
more memory = more system resources, more operations = more cpu power.
You can't compare low level code with a medium level code.
also main is int main, not void main in STD C++, learn that :=)
keyman
02-10-2002, 03:58 PM
This old argument *grumble* *grumble*
First of all printf() is designed to output 'format' strings. So you should never use it to output "Hello" or other strings that require no formating.
You should reconduct your speed tests and use the following code.
/* C */
#include <stdio.h>
int main( void )
{
puts("Hello\n");
return 0;
}
// C++ (minus minus speed)
#include <iostream.h>
void main()
{
cout << "Hello" << endl;
return;
}
; asm x86,gas(AT&T),linux
.data
hello:
.string "Hello\n"
.text
.globl _start
_start:
movl $4,%eax
movl $1,%ebx
movl $hello,%ecx
movl $7,%edx
int $0x80
movl $1,%eax
xorl %ebx,%ebx
int $0x80
ret
Hey XP,
I guess you can only talk and nothing more. Who told you C is faster? You also want to say C is faster than PHP? Make simple prog on C that outputs Hello and do the same on PHP. PHP is faster 7 times! But, php is not good to make big maths and it uses memory. BUT IT IS FASTER.
You didn't seem to mention that its the operating system and webserver that causes CGI to be slower. The reason is that apache and other webservers will fork() for every new CGI process and the operating system will have to allocate memory for it.
You can easily get around this bottleneck by writing an apache module or by using Fcgi (as suggested by XP).
You'll never get the same cpu cache hits with C++, because your code is dynamic in the way it makes calls through a vtable instead of a static address.
C++ is not C so easycj is not written in C.
Core-Dump
02-10-2002, 04:30 PM
you are full of shit dude, you bumped up this thread to continue you stupid spamming still trying to justify your false advertising.
C++ executables are 500kb or so, C is about 5-10kb. C++ is slower and will handle less hits total on a server, and that is the bottomline.
Have fun with your rape site, CP site customers, you should have been banned from here a long time ago.
Webmaster Scripts
02-10-2002, 11:45 PM
Guys, i just gave you the results of the tests and you still don't believe. Do them yourself then. I didn't fake anything. Theory is not always the same as practice.
2Core-Dump: 500kb? man, have you ever compiled any C++ code?
I don't care what sites my clients run - it is their own problems, though i don't support CP. I don't have time to monitor all sites and see if they have something illegal. Wanna do this for me? :)
vBulletin® v3.7.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.