Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 


Quelle  benchmark_server.py   Sprache: Python

 
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

from __future__ import print_function
import json
import os
import subprocess
import time
import urllib2

FILE = 'perf.json'
URL = 'https://wrperf.org/submit'

while True:
    try:
        # Remove any previous results
        try:
            os.remove(FILE)
        except Exception:
            pass

        # Pull latest code
        subprocess.call(["git""pull"])

        # Get the git revision of this build
        revision = subprocess.check_output(["git""rev-parse""HEAD"]).strip()

        # Build
        subprocess.call(["cargo""build""--release"])

        # Run benchmarks
        env = os.environ.copy()
        # Ensure that vsync is disabled, to get meaningful 'composite' times.
        env['vblank_mode'] = '0'
        subprocess.call(["cargo""run""--release""--""perf", FILE], env=env)

        # Read the results
        with open(FILE) as file:
            results = json.load(file)

        # Post the results to server
        payload = {
            'key': env['WEBRENDER_PERF_KEY'],
            'revision': revision,
            'timestamp': str(time.time()),
            'tests': results['tests'],
        }

        req = urllib2.Request(URL,
                              headers={"Content-Type""application/json"},
                              data=json.dumps(payload))

        f = urllib2.urlopen(req)
    except Exception as e:
        print(e)

    # Delay a bit until next benchmark
    time.sleep(60 * 60)

Messung V0.5
C=92 H=91 G=91

¤ Dauer der Verarbeitung: 0.9 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge