Changeset ccda60bd in rtems


Ignore:
Timestamp:
Dec 7, 2016, 10:21:28 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
3672f9a2
Parents:
28fda62
git-author:
Sebastian Huber <sebastian.huber@…> (12/07/16 10:21:28)
git-committer:
Sebastian Huber <sebastian.huber@…> (12/07/16 10:22:00)
Message:

smplock01: Fix plot scripts

Location:
testsuites/smptests/smplock01
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/smptests/smplock01/smplock01fair.py

    r28fda62 rccda60bd  
    3737        if len(y) == 0:
    3838                raise
    39         return (statistics.stdev(y) / statistics.mean(y)) / math.sqrt(len(y) - 1)
     39        return (statistics.stdev(y) / statistics.mean(y)) / math.sqrt(len(y))
    4040
    4141try:
     
    5050
    5151x = range(2, len(ticket) + 2)
    52 plt.yscale('log')
     52plt.xticks(x)
     53plt.yscale('symlog', linthreshy = 1e-6)
    5354plt.plot(x, ticket, label = 'Ticket Lock', marker = 'o')
    5455plt.plot(x, mcs, label = 'MCS Lock', marker = 'o')
  • testsuites/smptests/smplock01/smplock01perf.py

    r28fda62 rccda60bd  
    2424y = map(xmlNode.getContent, ctx.xpathEval('/SMPLock01/GlobalTicketLockWithLocalCounter/SumOfLocalCounter'))
    2525x = range(1, len(y) + 1)
     26plt.xticks(x)
    2627plt.plot(x, y, label = 'Ticket Lock', marker = 'o')
    2728
Note: See TracChangeset for help on using the changeset viewer.