input text selectors

JavaScript performance comparison

Test case created by Jeromy French

Info

http://stackoverflow.com/questions/14345185/whats-wrong-with-my-first-jquery-code-and-how-can-i-accomplish-this-event

Preparation code

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<form id="provision">
  ESNList:
  <input type="text" id="ESNList" name="ESNList" size="30" />
  <br />
  ESN Start:
  <input type="text" id="ESNStart" name="ESNStart" size="10" />
  <br />
  ESN End:
  <input type="text" id="ESNStart" name="ESNStart" size="10" />
  <br />
  UnitName:
  <input type="text" id="STxName" name="STxName" size="30" />
  <br />
  Unit Model:
  <select name="STxName">
    <option value="stx2">
      STX2
    </option>
    <option value="protopak">
      Protopak
    </option>
    <option value="stm3" selected>
      STM3
    </option>
    <option value="acutec">
      Acutec
    </option>
    <option value="mmt">
      MMT
    </option>
    <option value="smartone">
      Trackpack
    </option>
    <option value="smartoneb">
      SmartOneB
    </option>
    <option value="audi">
      Acutec
    </option>
  </select>
  <br />
  RTU Model Type:
  <select name="rtumodel">
    <option value="globalstar">
      GlobalStar
    </option>
    <option value="both">
      Both
    </option>
    <option value="comtech">
      Comtech
    </option>
    <option value="stmcomtech">
      STMComtech
    </option>
  </select>
  <br />
  <input type="submit" value="submit" />
</form>

Preparation code output

ESNList:
ESN Start:
ESN End:
UnitName:
Unit Model:
RTU Model Type:

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
$(':text')
$(':text')
pending…
$('input:text')
$('input:text')
pending…

You can edit these tests or add even more tests to this page by appending /edit to the URL.

Compare results of other browsers

0 comments

Add a comment