kayws426 / picoc

Automatically exported from code.google.com/p/picoc
0 stars 0 forks source link

Executions speed decreased #202

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
same computer, same compilation flags.

1. create test.c file with the content below:
int i;
for(i=0;i<100000;i++)
    { printf("%i\n",i); }

2.
v2.1: time ./picoc -s test.c
real    0m1.301s
user    0m0.425s
sys 0m0.308s

v2.2 beta r608M: time ./picoc -s test.c
real    0m2.128s
user    0m1.458s
sys 0m0.315s

$ uname -a
Linux wurlde-Core2 3.16.0-30-generic #40-Ubuntu SMP Mon Jan 12 22:06:37 UTC 
2015 x86_64 x86_64 x86_64 GNU/Linux

Original issue reported on code.google.com by wurl...@gmail.com on 10 Feb 2015 at 11:12

GoogleCodeExporter commented 9 years ago
shell script (bash) performance (faster than 2.2beta):
real    0m1.734s
user    0m1.027s
sys 0m0.362s

the script:
#!/bin/bash
for ((i=0;i<100000;++i)); do echo $i; done

Original comment by wurl...@gmail.com on 10 Feb 2015 at 11:16