change gentest to be written in python for speed build faster while chloride isnt in a finished state
This commit is contained in:
2
Makefile
2
Makefile
@@ -26,7 +26,7 @@ full-debug: $(CFILES) $(LEXER_C) $(LEXER_H)
|
|||||||
optimised: $(CFILES) $(LEXER_C) $(LEXER_H)
|
optimised: $(CFILES) $(LEXER_C) $(LEXER_H)
|
||||||
mkdir -p bin
|
mkdir -p bin
|
||||||
gcc -O3 -fprofile-generate -o $(BINARY) $(CFILES) $(CFLAGS)
|
gcc -O3 -fprofile-generate -o $(BINARY) $(CFILES) $(CFLAGS)
|
||||||
${BINARY} test.ar
|
${BINARY} rand_test.ar
|
||||||
gcc -O3 -fprofile-use -o $(BINARY) $(CFILES) $(CFLAGS)
|
gcc -O3 -fprofile-use -o $(BINARY) $(CFILES) $(CFLAGS)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
let myfile = file.write("rand_test.ar")
|
|
||||||
|
|
||||||
for (i from 0 to 100000) do
|
|
||||||
myfile.text("\"")
|
|
||||||
myfile.text(string(random()))
|
|
||||||
myfile.text("\"\n")
|
|
||||||
7
gentest.py
Normal file
7
gentest.py
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
import random
|
||||||
|
myfile = open("rand_test.ar","w")
|
||||||
|
|
||||||
|
for i in range(10000000):
|
||||||
|
myfile.write("\"")
|
||||||
|
myfile.write(str(random.random())[2::])
|
||||||
|
myfile.write("\"\n")
|
||||||
Reference in New Issue
Block a user