Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ELENA benchmark sample #299

Open
arakov opened this issue Mar 22, 2017 · 7 comments
Open

ELENA benchmark sample #299

arakov opened this issue Mar 22, 2017 · 7 comments

Comments

@arakov
Copy link
Member

arakov commented Mar 22, 2017

A benchmark example should be created to compare performance to c, c#, java, smalltalk, ruby

@bencz
Copy link
Member

bencz commented Nov 25, 2020

I went to do some comparative analysis of the BrainF * ck interpreter and when trying to run 2 banchmark scripts I got exceptions ... I tried to run changing the variable "const int Solution" but it didn't work

bench.txt
mandel.txt

@arakov
Copy link
Member Author

arakov commented Nov 25, 2020

Which version did you use? I recommend the nighty build - https://ci.appveyor.com/project/arakov/elena-lang/build/artifacts

@bencz
Copy link
Member

bencz commented Nov 25, 2020

I had tested it with the master ...
I downloaded this release and it also didn't work

@arakov
Copy link
Member Author

arakov commented Nov 26, 2020

One of the problem is a comment at the program start. I updated asmrules.es (in current) and it works for bench. There is a second problem with mandel.txt. I will look at it later.

@bencz
Copy link
Member

bencz commented Nov 26, 2020

I tried to check some possibilities, like the stack size, but the error persisted ...
And I noticed that the process using Tape, as it is currently done, is VERY SLOW !!
compared with online interpreters and many others ... the execution time is gigantically different (using bench.txt as a test)

Take a look:
https://copy.sh/brainfuck/?c=IEJlbmNobWFyayBicmFpbmYqY2sgcHJvZ3JhbQo-KytbPCsrKysrKysrKysrKys-LV08W1s-Kz4rPDwtXT5bPCs-LV0rKysrKysrKwpbPisrKysrKysrPC1dPi5bLV08PD4rKysrKysrKysrWz4rKysrKysrKysrWz4rKworKysrKysrK1s-KysrKysrKysrK1s-KysrKysrKysrK1s-KysrKysrKysrK1s-KworKysrKysrKytbLV08LV08LV08LV08LV08LV08LV08LV0rKysrKysrKysrLgogIA$$

@arakov
Copy link
Member Author

arakov commented Nov 26, 2020

of course it is slow. But you may use the script to generate C code and compile it :)

@arakov
Copy link
Member Author

arakov commented Nov 27, 2020

If someone will provide faster solution I wouldn't mind :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants