jsPerf.app is an online JavaScript performance benchmark test runner & jsperf.com mirror. It is a complete rewrite in homage to the once excellent jsperf.com now with hopefully a more modern & maintainable codebase .
jsperf.com URLs are mirrored at the same path, e.g:
https://jsperf.com/negative-modulo/2 Can be accessed at:
https://jsperf.app/negative-modulo/2 ko.viewmodel vs ko.mapping - viewmodel creation (v29) Revision 29 of this benchmark created on October 9, 2014 Preparation HTML <script src ="http://cdnjs.cloudflare.com/ajax/libs/knockout/3.2.0/knockout-min.js" > </script >
<script src ="http://cdnjs.cloudflare.com/ajax/libs/knockout.mapping/2.4.1/knockout.mapping.js" > </script >
<script src ="http://coderenaissance.github.com/knockout.viewmodel/knockout.viewmodel.min.js" > </script >
Setup var numberOfArrayRecords = 100 ,
viewmodel = null ,
model = {
items :[]
};
for (var x = 0 ; x < numberOfArrayRecords; x++){
model.items .push ({
string :"Test" ,
number :4 ,
anotherObject :{
items :[{id :4 , name :"Test" },{id :7 , name :"Test2" }]
}
});
}
Test runner Ready to run.
Run Quick Run Testing in Test Ops/sec ko.mapping viewmodel = ko.mapping .fromJS (model);
ready
ko.viewmodel viewmodel = ko.viewmodel .fromModel (model);
ready
Revisions You can edit these tests or add more tests to this page by appending /edit to the URL.
Revision 1 : published by CodeRenaissance on January 23, 2013 Revision 2 : published on February 12, 2013 Revision 3 : published on March 19, 2013 Revision 4 : published on April 29, 2013 Revision 5 : published on May 21, 2013 Revision 6 : published on May 21, 2013 Revision 7 : published on July 9, 2013 Revision 8 : published on July 23, 2013 Revision 9 : published by Tamjeed on August 8, 2013 Revision 10 : published on November 7, 2013 Revision 11 : published on November 7, 2013 Revision 12 : published on January 1, 2014 Revision 13 : published on January 4, 2014 Revision 14 : published on January 6, 2014 Revision 15 : published on January 6, 2014 Revision 16 : published on February 8, 2014 Revision 17 : published on February 28, 2014 Revision 18 : published by Aymeric on March 5, 2014 Revision 19 : published by Aymeric on March 6, 2014 Revision 20 : published on April 5, 2014 Revision 23 : published on June 11, 2014 Revision 24 : published on August 4, 2014 Revision 25 : published on August 23, 2014 Revision 26 : published on August 31, 2014 Revision 28 : published by Aymeric on September 12, 2014 Revision 29 : published on October 9, 2014 Revision 30 : published on October 10, 2014 Revision 31 : published on October 10, 2014 Revision 32 : published on October 10, 2014 Revision 33 : published on October 16, 2014 Revision 36 : published on December 31, 2014 Revision 37 : published on December 31, 2014 Revision 38 : published on December 31, 2014 Revision 39 : published on December 31, 2014 Revision 40 : published on December 31, 2014 Revision 41 : published on January 2, 2015 Revision 42 : published on January 15, 2015 Revision 43 : published on January 15, 2015 Revision 44 : published on January 17, 2015 Revision 45 : published on February 5, 2015 Revision 46 : published on February 5, 2015 Revision 48 : published on April 19, 2015 Revision 49 : published on April 23, 2015 Revision 50 : published on May 8, 2015 Revision 51 : published on May 22, 2015 Revision 53 : published on September 16, 2015