change gentest to be written in python for speed build faster while chloride isnt in a finished state

This commit is contained in:
2025-07-01 01:19:23 +01:00
parent d868de4ab9
commit 49ae0223cb
3 changed files with 8 additions and 7 deletions

View File

@@ -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)

View File

@@ -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
View 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")