Comments (4)
The results are in. The clang opcodes are not quite as fast as the Faust-generated plugin opcode, but it is very close.
from csound-cxx-opcodes.
faustgen | faust2csound | faust2csound g++ native | faust2csound clang++ native | Clang opcodes |
---|---|---|---|---|
4.4607 | 5.0320 | 4.6015 | 3.8385 | 3.9381 |
4.4475 | 5.0350 | 4.6022 | 3.8239 | 3.9440 |
4.2371 | 5.0270 | 4.6325 | 3.8237 | 3.9240 |
4.4839 | 4.9800 | 3.8610 | 3.9309 | |
4.4357 | 5.0240 | 3.8010 | 3.9460 | |
4.3795 | 5.0490 | 3.8296 | 3.9406 | |
4.4235 | 4.9984 | 3.8701 | 3.9541 | |
4.3682 | 4.9811 | 3.8213 | 3.9503 | |
4.4395 | 5.0729 | 3.8716 | 3.9230 | |
4.3618 | 5.0629 | 3.8693 | 3.9252 | |
4.3783 | 5.0464 | 3.8726 | 3.9323 | |
4.4142 | 5.0570 | 3.8365 | 3.9901 | |
4.3713 | 5.0134 | 3.8666 | 4.0642 | |
4.3180 | 5.0053 | 3.8410 | 4.0044 | |
4.4177 | 5.0275 | 3.8287 | 3.9744 | |
4.3958 | 5.0275 | 4.6121 | 3.8437 | 3.9561 |
% of faustgen | 114.37% | 95.31% | 76.45% | 90.00% |
Student's t test | 3.81E-15 | 2.82E-12 | ||
102.92% |
from csound-cxx-opcodes.
About 3% slower than the fastest implementation, which is faust2csound compiled with clang++ for -march=native.
This is extremely good for a runtime compiler, needless to say.
And this means there is no reason not to use the Clang opcodes unless the ORC compile time gets too big. That would definitely happen at some point. I don't think that would be a problem in the studio, but it might be a problem in a live venue.
And, it might well be that I can speed up the ORC compiler.
from csound-cxx-opcodes.
About 3% slower than the fastest implementation, which is faust2csound compiled with clang++ for -march=native.
This is extremely good for a runtime compiler, needless to say.
And this means there is no reason not to use the Clang opcodes unless the ORC compile time gets too big. That would definitely happen at some point. I don't think that would be a problem in the studio, but it might be a problem in a live venue.
And, it might well be that I can speed up the ORC compiler.
from csound-cxx-opcodes.
Related Issues (19)
- Prepare for release HOT 2
- Multithreaded compiler for Clang opcodes HOT 2
- Clang opcodes crash Csound at exit
- Find whether separate Csound performances in the same process have separate LLVM contexts HOT 1
- ICMC paper and/or workshop for the Clang opcodes HOT 2
- Build on macOS HOT 7
- Re-implement using standard compiler commands HOT 2
- prefix release titles with version number? HOT 2
- Find alterative to mkstmps for Windows
- Package releases based on GitHub Actions HOT 1
- Shared libraries that are linked by embedded code, are not bound at run time. HOT 1
- OpcodeNoteoffBase crashes as superclass of ClangInvokable HOT 1
- Store per-performance JITCompilers to enable simultaneous performances in one process HOT 2
- CMJ article about the Clang opcodes HOT 2
- Investigate use of Jupyter and Cling with Csound HOT 1
- Make a simpler example for using an external dynamic link library with clang_compile and clang_invoke
- Tutorial videos HOT 1
- Speed up csound->InputMessage HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from csound-cxx-opcodes.