# Why is pyscript is so slow

**URL:** <https://forum.anaconda.com/t/why-is-pyscript-is-so-slow/21767>\
**Category:** PyScript\
**Created:** [May 14, 2022, 5:50pm UTC](https://forum.anaconda.com/t/why-is-pyscript-is-so-slow/21767 "2022-05-14T17:50:52Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![aryankhokhar2003](https://avatars.discourse-cdn.com/v4/letter/a/00a5b5/32.png) [@aryankhokhar2003](https://forum.anaconda.com/u/aryankhokhar2003)\
**Post date:** [May 14, 2022, 5:50pm UTC](https://forum.anaconda.com/t/why-is-pyscript-is-so-slow/21767/1 "2022-05-14T17:50:52Z")

</div>

If pyscript will slow . There is no adventage of pyscript in web devlopment . I think we have to make pyscript like javascript. that excute there code directly. Not use webassembly and translate there code other language like javascript

---

<div class="post-metadata">

**Author:** ![john.hanley](https://dub1.discourse-cdn.com/anaconda/user_avatar/forum.anaconda.com/john.hanley/32/1294_2.png) [@john.hanley](https://forum.anaconda.com/u/john.hanley)\
**Post date:** [May 15, 2022, 7:30am UTC](https://forum.anaconda.com/t/why-is-pyscript-is-so-slow/21767/2 "2022-05-15T07:30:33Z")

</div>

Can you add more detail and context? What is slow about PyScript? I have no problems with performance.

---

<div class="post-metadata">

**Author:** ![MARTIN\_DURANT](https://dub1.discourse-cdn.com/anaconda/user_avatar/forum.anaconda.com/martin_durant/32/67_2.png) [@MARTIN\_DURANT](https://forum.anaconda.com/u/MARTIN_DURANT)\
**Post date:** [May 16, 2022, 1:48pm UTC](https://forum.anaconda.com/t/why-is-pyscript-is-so-slow/21767/3 "2022-05-16T13:48:22Z")

</div>

A couple of notes:

- pyscript is very very new! We are exploring what is possible before focussing on optimising for performance
- _probably_ you are worried about initialisation time, which will get much better as we improve the story around packaging and more pyscript is cached by your browser and the CDN
- webassembly does NOT translate python to JS, it directly runs Cpython using the browser’s runtime. It can be almost as fast as python running in a standalone process.

---

<div class="post-metadata">

**Author:** ![aryankhokhar2003](https://avatars.discourse-cdn.com/v4/letter/a/00a5b5/32.png) [@aryankhokhar2003](https://forum.anaconda.com/u/aryankhokhar2003)\
**Post date:** [May 17, 2022, 6:45pm UTC](https://forum.anaconda.com/t/why-is-pyscript-is-so-slow/21767/4 "2022-05-17T18:45:40Z")

</div>

I use a low spec laptop to check performance of pyscript. Here many time pyscript failed to run . It’s excution time is too much. Where js is too quick on that laptop.

---

<div class="post-metadata">

**Author:** ![aryankhokhar2003](https://avatars.discourse-cdn.com/v4/letter/a/00a5b5/32.png) [@aryankhokhar2003](https://forum.anaconda.com/u/aryankhokhar2003)\
**Post date:** [May 17, 2022, 6:46pm UTC](https://forum.anaconda.com/t/why-is-pyscript-is-so-slow/21767/5 "2022-05-17T18:46:37Z")

</div>

I am student . Should I go for js or pyscript .

---

<div class="post-metadata">

**Author:** ![MARTIN\_DURANT](https://dub1.discourse-cdn.com/anaconda/user_avatar/forum.anaconda.com/martin_durant/32/67_2.png) [@MARTIN\_DURANT](https://forum.anaconda.com/u/MARTIN_DURANT)\
**Post date:** [May 17, 2022, 7:01pm UTC](https://forum.anaconda.com/t/why-is-pyscript-is-so-slow/21767/6 "2022-05-17T19:01:13Z")

</div>

> Should I go for js or pyscript .

pyscript is not (yet) a language that’s in use in real production webapps.

---

<div class="post-metadata">

**Author:** ![pauleveritt](https://dub1.discourse-cdn.com/anaconda/user_avatar/forum.anaconda.com/pauleveritt/32/1649_2.png) [@pauleveritt](https://forum.anaconda.com/u/pauleveritt)\
**Post date:** [May 18, 2022, 11:15am UTC](https://forum.anaconda.com/t/why-is-pyscript-is-so-slow/21767/7 "2022-05-18T11:15:26Z")

</div>

My thinking…If your goal is to do web _sites_, stick with JS. I don’t believe PyScript is really targeting that.

If your goal is Python and you want a UI, Pyodide/PyScript is interesting.

The tough spot is in between. If your goal is web _applications_ and you aren’t yet committed to one or the other…hopefully PyScript becomes more of a competitor there.

---

<div class="post-metadata">

**Author:** ![shahin.rmz](https://avatars.discourse-cdn.com/v4/letter/s/00a5b5/32.png) [@shahin.rmz](https://forum.anaconda.com/u/shahin.rmz)\
**Post date:** [July 2, 2022, 5:55pm UTC](https://forum.anaconda.com/t/why-is-pyscript-is-so-slow/21767/8 "2022-07-02T17:55:03Z")

</div>

Many students and people with scientific background love Pyscript, because it allows us to make our ideas (of course with python) to real web apps.  
if someone is interested to scientific programming, Python is the just and only answer.  
But if someone wants to be web dev, look no further than JS.

---

<div class="post-metadata">

**Author:** ![john.hanley](https://dub1.discourse-cdn.com/anaconda/user_avatar/forum.anaconda.com/john.hanley/32/1294_2.png) [@john.hanley](https://forum.anaconda.com/u/john.hanley)\
**Post date:** [July 2, 2022, 9:10pm UTC](https://forum.anaconda.com/t/why-is-pyscript-is-so-slow/21767/9 "2022-07-02T21:10:50Z")

</div>

JavaScript is just a language. It is the runtime environment, frameworks, libraries, tools, etc. that are the key factors. Today, you can develop web applications in many languages. Web development is just one segment of technology.

If you were in the house construction business, knowing only JavaScript would be like only knowing how to install plumbing. There are many other disciplines, like electrical, framing, siding, roofing, landscaping, etc., etc., etc. The computer industry is the same. The language, in general, means very little today.
