--
You received this message because you are subscribed to the Google Groups "brython" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brython+unsubscribe@googlegroups.com.
To post to this group, send email to bry...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brython/6b315f2b-50d6-45a3-9829-31e707b142e2%40googlegroups.com.
Could the brython test suite serve for this purpose?They cover a lot of real life functionality.
It's better IMO to use more or less "standard" performance tests such as pystone (to compare with CPython and other Python in the browser implementations),
and to keep the elementary tests in folder /speed to identify the weakest points.
I agree with Pierre here. It might also make sense to include some real-world applications written in Brython as tests to measure "real-world" performance.
In reply to Pierre's comment on my pull request:
As much as I agree with the objective, I wonder if a similar result could not be reached with Brython itself.
The script perf.py I wrote is there mainly for running the tests automatically (either from the console or in the continuous integration environment).
The test runner (benchmark.py) is actually written in Brython. It was very nice that with some trivial modifications (e.g. checking not to use the browser module),
the same file is also usable to run the same tests in CPython. What I also like about this script is its use of the asyncio library which allows me to trivially
make the test page responsive (i.e. the execution of the test suite doesn't block the browser) just by adding a few decorators and changing few function calls to yield froms. In particular there is no need to deal with javascript's callback hell...
I have made minor improvements to the integrated speed test suite, when you "run all tests" a page is opened with the results of Brython vs CPython for all the tests.
Interesting... How do you "run all tests"?
The page is very basic and ugly at the moment , but working on a nicer presentation with graphs would be a good illustration of what can be done in Brython, instead of using Javascript libraries.
I don't know if it would be possible to run this in the CI process though.
--
You received this message because you are subscribed to the Google Groups "brython" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brython+unsubscribe@googlegroups.com.
To post to this group, send email to bry...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brython/f1977a3e-dee1-465e-b051-c135405df7ee%40googlegroups.com.
I have made minor improvements to the integrated speed test suite, when you "run all tests" a page is opened with the results of Brython vs CPython for all the tests.
Interesting... How do you "run all tests"?