Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/rentals.picotech.app/public_html/node_modules/toposort-class/benchmark/ drwxr-xr-x |
Viewing file: Select action/file-type: var Toposort = require( "../index.js" ); var OldToposort = require( "./0.3.1/toposort.js" ); suite( "simple dependency chains", function() { set( "delay", 0 ); set( "mintime", 1750 ); bench( "0.3.1 version", function() { var t = new OldToposort(); t.add( "3", "2" ) .add( "2", "1" ) .add( "6", "5" ) .add( "5", ["2", "4"] ).sort(); } ); bench( "current version", function() { var t = new Toposort(); t.add( "3", "2" ) .add( "2", "1" ) .add( "6", "5" ) .add( "5", ["2", "4"] ).sort(); } ); } ); suite( "slightly more complex chains", function() { set( "delay", 0 ); set( "mintime", 1750 ); bench( "0.3.1 version", function() { var t = new OldToposort(); t.add( "3", "1" ) .add( "2", "3" ) .add( "4", ["2", "3"] ) .add( "5", ["3", "4"] ) .add( "6", ["3", "4", "5"] ) .add( "7", "1" ) .add( "8", ["1", "2", "3", "4", "5"] ) .add( "9", ["8", "6", "7"] ).sort(); } ); bench( "current version", function() { var t = new Toposort(); t.add( "3", "1" ) .add( "2", "3" ) .add( "4", ["2", "3"] ) .add( "5", ["3", "4"] ) .add( "6", ["3", "4", "5"] ) .add( "7", "1" ) .add( "8", ["1", "2", "3", "4", "5"] ) .add( "9", ["8", "6", "7"] ).sort(); } ); } ); |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0042 ]-- |