Calcpad version 5.9.3 #113
Replies: 2 comments 4 replies
-
Is Calcpad faster than MathCAD? That is an interesting question. I tried one and the same expression in both programs, summed 100 000 000 times. Gravar.1.mp4This is great news, having in mind that MathCAD is one of the world most popular applications for engineering calculations. It has been developed for decades and now owned by one of the most powerful companies for engineering software. I will do some more tests with numerical methods and other features to see what happens there. |
Beta Was this translation helpful? Give feedback.
-
Hi guys, I made another performance test, but this time with SMath. I used the same example as for the MathCAD test:
But the difference was so huge that it was very difficult to record a decent video. Calcpad.vs.SMath.mp4Of course, I also tried n = 100 000 000 as in the MathCAD example. It took about 10 secs for Calcpad and 20 secs for MathCAD. For SMath, I waited up to 20 minutes and finally gave up. I think that the difference comes mainly from the smart mix between interpreted and compiled code + optimizations (dynamic programming, caching, constant folding etc.) that Calcpad uses. I believe that MathCAD is optimized in a similar way. Probably, SMath interprets the same code each time, which is very slow. Unfortunately, it is not open source. On the other hand, Calcpad interprets only codes that will be executed just once and compiles those that are to be executed multiple times as the one inside the sum. The compilations is lazy - on demand (occurs when the code is needed for the first time). I even consider to compile the whole code and write it as an executable. It can be wrapped in a thin Calcpad "player" that will provide the interface to run, print and export the results. For that purpose, it will look and work exactly as in the main app, but will be standalone and will not require to have Calcpad installed. There are opportunities for even further optimization - parallelization, SIMD vectorization and using CUDA cores (if a suitable video card is available). But I think that it is time to add some more useful features, so this year I will focus on that, starting with vectors and matrices. :) |
Beta Was this translation helpful? Give feedback.
-
After all the optimizations in the last 2-3 months, Calcpad now performs almost as twice as faster than version 5.8.6 from Sept 2022.
I made a short video that demonstrates this: https://youtu.be/6hPCa4qh2YQ
This discussion was created from the release Calcpad version 5.9.3.
Beta Was this translation helpful? Give feedback.
All reactions