Skip to content

Instantly share code, notes, and snippets.

@tgfrerer
Created July 4, 2013 15:11
Show Gist options
  • Save tgfrerer/5928534 to your computer and use it in GitHub Desktop.
Save tgfrerer/5928534 to your computer and use it in GitHub Desktop.
Two perf records comparing a minimal of App running in the raspberry Pi using the Programmeble GL Renderer and the GLES2 Renderer '''perf_3.2 record -c 2 ./bin/emptyExample
Samples: 31K of event 'cpu-clock:HG', Event count (approx.): 31838
3.76% emptyExample emptyExample [.] ofGLES2Renderer::draw(ofMesh&, ofPolyRenderMode, bool, bool, bool)
3.56% emptyExample emptyExample [.] ofShader::getUniformLocation(char const*)
3.52% emptyExample emptyExample [.] ofGLES2Renderer::drawString(std::string, float, float, float, ofDrawBitmapMode)
3.07% emptyExample emptyExample [.] ofShader::getAttributeLocation(char const*)
2.68% emptyExample emptyExample [.] ofAppEGLWindow::display()
2.50% emptyExample emptyExample [.] ofDrawBitmapCharacter(int, int, int)
1.91% emptyExample emptyExample [.] Poco::AbstractEvent<ofEventArgs, Poco::FIFOStrategy<ofEventArgs, Poco::AbstractDelegate<ofEventArgs> >, Poco::AbstractDelegate<ofEve
1.78% emptyExample emptyExample [.] ofShader::setUniform1f(char const*, float)
1.75% emptyExample emptyExample [.] ofTexture::drawSubsection(float, float, float, float, float, float, float, float, float)
1.61% emptyExample emptyExample [.] ofGLIsFixedPipeline()
1.57% emptyExample emptyExample [.] ofGLES2Renderer::disableColors()
1.39% emptyExample emptyExample [.] ofGLES2Renderer::setupScreenPerspective(float, float, ofOrientation, bool, float, float, float)
1.39% emptyExample emptyExample [.] ofAppEGLWindow::checkEvents()
1.34% emptyExample emptyExample [.] ofGLES2Renderer::enableTexCoords()
1.23% emptyExample emptyExample [.] ofGLES2Renderer::disableTexCoords()
1.21% emptyExample emptyExample [.] ofDrawBitmapCharacterStart(int)
1.19% emptyExample emptyExample [.] ofDrawBitmapString(std::string, float, float, float)
1.19% emptyExample emptyExample [.] ofGLES2Renderer::getType()
1.19% emptyExample emptyExample [.] ofGetCurrentRenderer()
1.03% emptyExample emptyExample [.] ofGLES2Renderer::draw(ofImage_<unsigned char>&, float, float, float, float, float, float, float, float, float)
1.00% emptyExample [kernel.kallsyms] [k] __do_softirq
0.94% emptyExample emptyExample [.] ofStyle::ofStyle(ofStyle const&)
0.91% emptyExample emptyExample [.] ofMesh::draw(ofPolyRenderMode)
0.90% emptyExample emptyExample [.] ofShader::setUniform4f(char const*, float, float, float, float)
0.88% emptyExample emptyExample [.] ofShader::begin()
0.84% emptyExample emptyExample [.] ofGLES2Renderer::setColor(int, int, int, int)
0.84% emptyExample emptyExample [.] ofThread::lock()
0.81% emptyExample emptyExample [.] ofMatrix4x4::makeLookAtViewMatrix(ofVec3f const&, ofVec3f const&, ofVec3f const&)
0.80% emptyExample emptyExample [.] ofEvents()
0.79% emptyExample emptyExample [.] ofShader::setAttribute3fv(char const*, float*, int)
0.78% emptyExample emptyExample [.] ofRectangle::ofRectangle()
0.76% emptyExample emptyExample [.] ofColor_<unsigned char>::ofColor_(ofColor_<unsigned char> const&)
0.74% emptyExample emptyExample [.] ofTexture::bind()
0.73% emptyExample emptyExample [.] ofAppEGLWindow::idle()
0.73% emptyExample emptyExample [.] ofGLES2Renderer::setBlendMode(ofBlendMode)
0.71% emptyExample emptyExample [.] ofSetColor(int, int, int)
0.71% emptyExample emptyExample [.] std::deque<ofKeyEventArgs, std::allocator<ofKeyEventArgs> >::operator=(std::deque<ofKeyEventArgs, std::allocator<ofKeyEventArgs> > c
0.70% emptyExample emptyExample [.] ofGetGLPrimitiveMode(ofPrimitiveMode)
0.69% emptyExample emptyExample [.] std::deque<ofStyle, std::allocator<ofStyle> >::size() const
0.69% emptyExample emptyExample [.] ofNotifyDraw()
0.67% emptyExample emptyExample [.] std::deque<ofMouseEventArgs, std::allocator<ofMouseEventArgs> >::operator=(std::deque<ofMouseEventArgs, std::allocator<ofMouseEventA
0.66% emptyExample emptyExample [.] ofMatrix4x4::preMult(ofMatrix4x4 const&)
0.66% emptyExample emptyExample [.] ofPopStyle()
0.66% emptyExample emptyExample [.] ofMatrix4x4::ofMatrix4x4(ofMatrix4x4 const&)
0.66% emptyExample emptyExample [.] ofNotifyUpdate()
0.64% emptyExample emptyExample [.] _GLOBAL__sub_I_ofColor.cpp
0.62% emptyExample emptyExample [.] ofShader::end()
0.60% emptyExample emptyExample [.] ofShader::setAttribute2fv(char const*, float*, int)
0.60% emptyExample emptyExample [.] ofShader::setUniformMatrix4f(char const*, ofMatrix4x4 const&)
0.59% emptyExample emptyExample [.] ofDrawBitmapString(std::string, float, float)
0.59% emptyExample emptyExample [.] ofGLES2Renderer::viewport(float, float, float, float, bool)
0.59% emptyExample emptyExample [.] ofAppEGLWindow::readNativeUDevEvents()
0.58% emptyExample emptyExample [.] ofMesh::getNumNormals() const
0.58% emptyExample emptyExample [.] ofMatrix4x4::glTranslate(float, float, float)
0.57% emptyExample emptyExample [.] ofMesh::draw()
0.57% emptyExample emptyExample [.] ofEnableBlendMode(ofBlendMode)
0.57% emptyExample emptyExample [.] ofThread::unlock()
0.56% emptyExample [kernel.kallsyms] [k] getnstimeofday
0.55% emptyExample emptyExample [.] ofImage_<unsigned char>::drawSubsection(float, float, float, float, float, float, float, float, float)
0.55% emptyExample emptyExample [.] ofMesh::getNumVertices() const
//--------------------------------------------------------------
void testApp::setup() {
ofSetVerticalSync(false);
ofSetFrameRate(0);
}
//--------------------------------------------------------------
void testApp::draw() {
ofClear(0);
ofSetColor(255);
ofDrawBitmapString(ofToString(ofGetFrameRate(),2), 10,10);
}
Samples: 19K of event 'cpu-clock:HG', Event count (approx.): 19227
9.02% emptyExample emptyExample [.] ofShader::getUniformLocation(std::string const&)
8.31% emptyExample emptyExample [.] ofMatrix4x4::makeFromMultiplicationOf(ofMatrix4x4 const&, ofMatrix4x4 const&)
2.96% emptyExample emptyExample [.] ofShader::setUniformMatrix4f(std::string const&, ofMatrix4x4 const&)
2.55% emptyExample emptyExample [.] ofGetGLProgrammableRenderer()
2.32% emptyExample emptyExample [.] ofGLProgrammableRenderer::uploadCurrentMatrix()
2.05% emptyExample emptyExample [.] ofGLProgrammableRenderer::beginCustomShader(ofShader&)
1.94% emptyExample emptyExample [.] ofVbo::bind()
1.75% emptyExample emptyExample [.] ofGLProgrammableRenderer::getType()
1.71% emptyExample emptyExample [.] ofMatrix4x4::makeIdentityMatrix()
1.67% emptyExample emptyExample [.] ofGLProgrammableRenderer::uploadAllMatrices()
1.60% emptyExample emptyExample [.] ofShader::setUniform1f(std::string const&, float)
1.57% emptyExample emptyExample [.] ofGLProgrammableRenderer::drawString(std::string, float, float, float, ofDrawBitmapMode)
1.47% emptyExample emptyExample [.] ofGetGLRenderer()
1.44% emptyExample emptyExample [.] ofShader::begin()
1.33% emptyExample emptyExample [.] ofGLProgrammableRenderer::beginDefaultShader()
1.32% emptyExample emptyExample [.] ofAppEGLWindow::display()
1.20% emptyExample [kernel.kallsyms] [k] __do_softirq
1.19% emptyExample emptyExample [.] ofMatrixStack::getModelViewPorjectionMatrix() const
1.09% emptyExample emptyExample [.] ofMatrix4x4::ofMatrix4x4()
1.08% emptyExample emptyExample [.] ofDrawBitmapCharacter(int, int, int)
1.07% emptyExample emptyExample [.] _GLOBAL__sub_I_ofColor.cpp
1.02% emptyExample emptyExample [.] ofVboMesh::updateVbo()
0.98% emptyExample emptyExample [.] ofMatrix4x4::operator=(ofMatrix4x4 const&)
0.96% emptyExample emptyExample [.] ofMatrixStack::updatedRelatedMatrices()
0.95% emptyExample emptyExample [.] ofGetCurrentRenderer()
0.86% emptyExample emptyExample [.] ofTexture::drawSubsection(float, float, float, float, float, float, float, float, float)
0.81% emptyExample emptyExample [.] ofAppEGLWindow::checkEvents()
0.78% emptyExample emptyExample [.] ofAppEGLWindow::readNativeUDevEvents()
0.75% emptyExample emptyExample [.] ofShader::setUniform4f(std::string const&, float, float, float, float)
0.68% emptyExample emptyExample [.] ofMatrixStack::clearStacks()
0.67% emptyExample emptyExample [.] Poco::AbstractEvent<ofEventArgs, Poco::PriorityStrategy<ofEventArgs, Poco::AbstractPriorityDelegate<ofEventArgs> >, Poco::AbstractPr
0.60% emptyExample emptyExample [.] ofGLProgrammableRenderer::setupScreenPerspective(float, float, float, float, float)
0.58% emptyExample emptyExample [.] ofMatrixStack::getProjectionMatrix() const
0.58% emptyExample emptyExample [.] ofStyle::ofStyle(ofStyle const&)
0.58% emptyExample emptyExample [.] ofNotifyUpdate()
0.54% emptyExample emptyExample [.] ofGLProgrammableRenderer::defaultNoTexNoColor()
0.54% emptyExample emptyExample [.] ofMatrixStack::popMatrix()
0.54% emptyExample emptyExample [.] ofShader::operator!=(ofShader const&)
0.53% emptyExample emptyExample [.] ofGLProgrammableRenderer::setColor(int, int, int, int)
0.50% emptyExample emptyExample [.] Poco::PriorityStrategy<ofEventArgs, Poco::AbstractPriorityDelegate<ofEventArgs> >::notify(void const*, ofEventArgs&)
0.49% emptyExample emptyExample [.] ofMatrix4x4::set(float const*)
0.48% emptyExample emptyExample [.] ofRectangle::~ofRectangle()
0.48% emptyExample emptyExample [.] ofMatrixStack::getModelViewMatrix() const
0.48% emptyExample emptyExample [.] ofMatrixStack::getTextureMatrix() const
0.47% emptyExample emptyExample [.] ofIsVFlipped()
0.47% emptyExample emptyExample [.] ofGLProgrammableRenderer::setBlendMode(ofBlendMode)
0.47% emptyExample emptyExample [.] ofGLProgrammableRenderer::draw(ofImage_<unsigned char>&, float, float, float, float, float, float, float, float, float)
0.47% emptyExample emptyExample [.] ofMatrixStack::getCurrentMatrixMode() const
0.46% emptyExample emptyExample [.] ofPixels_<unsigned char>::operator[](int)
0.45% emptyExample emptyExample [.] ofMatrixStack::getRenderSurfaceHeight() const
0.43% emptyExample emptyExample [.] std::stack<ofMatrix4x4, std::deque<ofMatrix4x4, std::allocator<ofMatrix4x4> > >::push(ofMatrix4x4 const&)
0.43% emptyExample emptyExample [.] ofVboMesh::draw(ofPolyRenderMode)
0.43% emptyExample emptyExample [.] ofMatrixStack::doesHWOrientation() const
0.42% emptyExample emptyExample [.] ofRectangle::set(float, float, float, float)
0.41% emptyExample emptyExample [.] ofMatrixStack::translate(float, float, float)
0.40% emptyExample emptyExample [.] Poco::PriorityDelegate<ofBaseApp, ofEventArgs, false>::notify(void const*, ofEventArgs&)
0.37% emptyExample emptyExample [.] ofMatrixStack::setOrientation(ofOrientation, bool)
0.37% emptyExample emptyExample [.] ofGLProgrammableRenderer::getNativeViewport()
0.36% emptyExample emptyExample [.] ofRectangle::ofRectangle(ofRectangle const&)
0.36% emptyExample emptyExample [.] ofColor_<unsigned char>::ofColor_(ofColor_<unsigned char> const&)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment