aboutsummaryrefslogtreecommitdiffstats
path: root/speed/slice.vs.concat.html
diff options
context:
space:
mode:
Diffstat (limited to 'speed/slice.vs.concat.html')
-rw-r--r--speed/slice.vs.concat.html26
1 files changed, 13 insertions, 13 deletions
diff --git a/speed/slice.vs.concat.html b/speed/slice.vs.concat.html
index 949c5f962..a5372a690 100644
--- a/speed/slice.vs.concat.html
+++ b/speed/slice.vs.concat.html
@@ -6,42 +6,42 @@
var SIZE = 1e4,
LOOPS = 500;
-
+
var arr = new Array(SIZE);
- for ( var i=arr.length-1; i >= 0; --i )
+ for ( var i = arr.length - 1; i >= 0; --i )
arr[i] = 0;
var t = new Date;
- for ( i=0; i < LOOPS; i++ )
+ for ( i = 0; i < LOOPS; i++ )
arr.slice(0);
var tslice = new Date - t;
-
+
t = new Date;
- for ( i=0; i < LOOPS; i++ )
+ for ( i = 0; i < LOOPS; i++ )
arr.concat();
var tconcat = new Date - t;
-
+
// clone() is just to see how fast built-ins are
t = new Date;
- for ( i=0; i < LOOPS; i++ )
+ for ( i = 0; i < LOOPS; i++ )
clone(arr);
var tclone = new Date - t;
-
+
alert([
'slice:'+tslice,
'concat:'+tconcat,
'clone:'+tclone
].join('\n'));
-
-
+
+
function clone(arr){
var i = arr.length,
copy = new Array(i);
-
+
while (i--)
copy[i] = arr[i];
-
+
return copy;
}
})();
-</script> \ No newline at end of file
+</script>
-audit'>automated/noid/stable29-fix-npm-audit Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/l10n/ar/user_webdavauth.po
blob: fccc6ae2c32882e584b04029f675e74c16a2cd51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36