HTML Preparation code:
AخA
 
1
<head>
2
    <title>Hello World!</title> 
3
    <script src='//code.jquery.com/jquery-3.3.1.min.js'></script>
4
    <script src='//code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js'></script>
5
    <link rel="stylesheet" href="//code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" />
6
    <meta name="viewport" content="width=device-width, initial-scale=1"/> 
7
</head>
8
<body> 
9
<div data-role="page">
10
    <div data-role="header">
11
        <h1>Curonsys</h1>
12
    </div>
13
    <div data-role="content"> 
14
        <p>Hello world</p>
15
    </div>
16
    <ul id="mylist" data-role="listview" data-inset="true" data-theme="d" data-divider-theme="e" data-count-theme="b">
17
        <li data-role="list-divider">Divider</li>
18
        <li><a href="#">Inbox <span class="ui-li-count">12</span></a></li>
19
        <li><a href="#">Outbox <span class="ui-li-count">0</span></a></li>
20
        <li><a href="#">Sent <span class="ui-li-count">328</span></a></li>
21
        <input type="button" value="http://curonsys.com" id="curo" class="myButton" data-inline="true"/>
22
        <input type="button" value="http://naver.com" id="nav" class="myButton" data-inline="true"/>
23
    </ul>
24
</div>
25
</body>
Script Preparation code:
 
var dirName;
var isRel;
var parseLocation;
Tests:
  • path

     
    $(document).ready(function() {
    dirName = $.mobile.path.get($('curo').attr('value'));
    });
  • url

     
    $(document).ready(function() {
      isRel = $.mobile.path.isRelativeUrl($('nav').attr('value'));
    });
  • parseLocation

     
    $(document).ready(function() {
    parseLocation = $.mobile.path.parseLocation();
    });
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    path
    url
    parseLocation

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:77.0) Gecko/20100101 Firefox/77.0
Firefox 77 on Windows
View result in a separate tab
Test name Executions per second
path 6027.1 Ops/sec
url 10859.7 Ops/sec
parseLocation 3702.1 Ops/sec