Displaying 20 results from an estimated 1503 matches for "elapse".
Did you mean:
elapsed
2017 Aug 22
4
How to benchmark speed of load/readRDS correctly
...ad(fl2) 295.0654 301.8162 335.6266 308.3757 319.6965 1915.706 100
It looks like the max value is an outlier.
So I tried:
SECOND TEST:
> sapply(1:10, function(x) system.time(n <- readRDS('file.rds'))[3])
elapsed elapsed elapsed elapsed elapsed elapsed elapsed elapsed elapsed elapsed
10.50 0.11 0.11 0.11...
2008 Aug 18
2
matrix row product and cumulative product
...x)[2])
+ y=y*x[,i]
+ return(y)
+ }
> cumprod.matrix=function(x)
+ {
+ y=matrix(1,nrow=dim(x)[1],ncol=dim(x)[2])
+ y[,1]=x[,1]
+ for (i in 2:dim(x)[2])
+ y[,i]=y[,i-1]*x[,i]
+ return(y)
+ }
> N=10000000
> xmat=matrix(runif(N),ncol=10)
> system.time(cumprod.matrix(xmat))
user system elapsed
1.07 0.09 1.15
> system.time(t(apply(xmat,1,cumprod)))
user system elapsed
29.27 0.21 29.50
> system.time(prod.matrix(xmat))
user system elapsed
0.29 0.00 0.30
> system.time(apply(xmat,1,prod))
user system elapsed
30.69 0.00 30.72
> xmat=matrix(runif(N),ncol=100)
> system.time(...
2011 Nov 18
3
tip: large plots
...cross
something useful. Probably many of you know this, but I didn't and so
others might benefit.
Using pch="." speeds up plotting considerably over using symbols.
> x <- runif(1000000)
> y <- runif(1000000)
> system.time(plot(x, y, pch="."))
user system elapsed
1.042 0.030 1.077
> system.time(plot(x, y))
user system elapsed
37.865 0.033 38.122
If you have enough points, the result is also more legible.
Choice of which pch symbol makes a difference too, the default pch=1 being
the slowest of what I tried, but "." is by far the...
2017 Aug 22
0
How to benchmark speed of load/readRDS correctly
...301.8162
> 335.6266 308.3757 319.6965 1915.706
> 100
>
> It looks like the max value is an outlier.
>
> So I tried:
> SECOND TEST:
> > sapply(1:10, function(x) system.time(n <- readRDS('file.rds'))[3])
> elapsed elapsed elapsed elapsed
> elapsed elapsed elapsed
> elapsed elapsed elapsed
> 10.50 0.11 0.11
> 0.11...
2007 Dec 19
1
strange timings in convolve(x,y,type="open")
...thing very odd when I apply convolve
to ever larger vectors. Here is an example below
with vectors ranging from 2^11 to 2^17. There is
a funny bump up at 2^12. Then it gets very slow at 2^16.
> for( i in 11:20 )print( system.time(convolve(1:2^i,1:2^i,type="o")))
user system elapsed
0.002 0.000 0.002
user system elapsed
0.373 0.002 0.375
user system elapsed
0.014 0.001 0.016
user system elapsed
0.031 0.002 0.034
user system elapsed
0.126 0.004 0.130
user system elapsed
194.095 0.013 194.185
user system elapsed
0.345...
2000 Jun 06
0
SCO Openserver 5.0.5 ssh2 problem.
...tions for *
debug: ssh_connect: getuid 0 geteuid 0 anon 0
debug: Connecting to sco [207.234.31.38] port 22.
debug: loaded 21 entropy commands from /usr/local/etc/ssh_prng_cmds
debug: Seeding random number generator.
debug: OpenSSL random status is now 0
debug: 3 bytes from system calls
debug: Time elapsed: 20 msec
debug: Got 0.06 bytes of entropy from 'ls -alni /var/log'
debug: Time elapsed: 30 msec
debug: Got 0.77 bytes of entropy from 'ls -alni /var/adm'
debug: Time elapsed: 10 msec
debug: Got 0.02 bytes of entropy from 'ls -alni /var/spool/mail'
debug: Time elapsed: 40 ms...
2017 Aug 22
1
How to benchmark speed of load/readRDS correctly
...308.3757 319.6965 1915.706
>> 100
>>
>> It looks like the max value is an outlier.
>>
>> So I tried:
>> SECOND TEST:
>> > sapply(1:10, function(x) system.time(n <- readRDS('file.rds'))[3])
>> elapsed elapsed elapsed
>> elapsed elapsed elapsed elapsed
>> elapsed elapsed elapsed
>> 10.50 0.11 0.11
>> 0.11...
2017 Oct 03
0
Revert to R 3.2.x code of logicalSubscript in subscript.c?
...=0, which
is slightly faster than using the JIT compiler):
R-3.4.2, LARGE VECTORS:
> N <- 1e8; R <- 5
> #N <- 1e5; R <- 1000
>
> x <- numeric(N)
> i <- rep(FALSE, length(x))# no reycling
> system.time(for (r in 1:R) a <- x[i])
user system elapsed
0.296 0.000 0.297
> i <- FALSE# recycling
> system.time(for (r in 1:R) a <- x[i])
user system elapsed
0.416 0.000 0.418
>
> x <- numeric(N)
> i <- rep(TRUE, length(x))# no reycling
> system.time(for (r in 1:R) a <- x[i])...
2017 Jul 11
0
Gluster native mount is really slow compared to nfs
...s? : N
> remote program directory : /root/smallfile-master
> network thread sync. dir. : /var/www/test/network_shared
> starting all threads by creating starting gate file
> /var/www/test/network_shared/starting_gate.tmp
> host = 192.168.140.41,thr = 00,elapsed = 1.232004,files = 5000,records =
> 0,status = ok
> host = 192.168.140.41,thr = 01,elapsed = 1.148738,files = 5000,records =
> 0,status = ok
> host = 192.168.140.41,thr = 02,elapsed = 1.130913,files = 5000,records =
> 0,status = ok
> host = 192.168.140.41,thr = 03,elapsed = 1.183...
2010 Aug 26
2
Speeding up transpose
...}))
v <- seq(0,2,12000)
print(system.time({for (i in 1:100000) u <- t(v)}))
print(system.time({for (i in 1:100000) w <- t(u)}))
Here are the times on an Intel Linux system:
R version 2.11.1: Modified version:
user system elapsed user system elapsed
1.190 0.040 1.232 0.610 0.010 0.619
user system elapsed user system elapsed
1.200 0.020 1.226 0.610 0.000 0.616
user system elapsed user system elapsed
0.800 0.010...
2017 Jul 11
2
Gluster native mount is really slow compared to nfs
...?permute host directories? : N
? ? ? ? ? ? ? ? remote program directory : /root/smallfile-master
? ? ? ? ? ? ? ?network thread sync. dir. : /var/www/test/network_shared
starting all threads by creating starting gate file /var/www/test/network_shared/starting_gate.tmp
host = 192.168.140.41,thr = 00,elapsed = 1.232004,files = 5000,records = 0,status = ok
host = 192.168.140.41,thr = 01,elapsed = 1.148738,files = 5000,records = 0,status = ok
host = 192.168.140.41,thr = 02,elapsed = 1.130913,files = 5000,records = 0,status = ok
host = 192.168.140.41,thr = 03,elapsed = 1.183088,files = 5000,records = 0,s...
2001 Feb 19
7
Packet integrity error. (34)
Hi,
I am using Van Dyke SecureCRT 3.2.1 to access an AIX server running
OpenSSH-2.5.0p1. Using ssh1 with X11 forwarding enabled, the server
reports the following error (in the client session):
Packet integrity error. (34)
This problem was not evident in 2.3.0p1. Running sshd in debug gives the
output:
debug1: sshd version OpenSSH_2.5.1p1
debug1: load_private_key_autodetect: type 0 RSA1
2009 Jul 09
2
Improvement of [dpq]wilcox functions
...ting Harding's algorithm:
Harding, E.F. (1984): An Efficient, Minimal-storage Procedure
for Calculating the Mann-Whitney U, Generalized U and Similar
Distributions, App. Statist., 33, 1-6
Results on my computer show (against R-2.9.1):
> system.time( dwilcox( 800, 800, 80) )
user system elapsed
0.240 0.180 0.443
> system.time( dwilcox( (1:2800), 80, 80) )
user system elapsed
0.290 0.020 0.30
> system.time( dwilcox( (1:2800), 160, 160) )
user system elapsed
0.810 0.060 0.868
> system.time( dwilcox( (1:28000), 210, 210) )
user system elapsed
17.700...
2017 Aug 22
0
How to benchmark speed of load/readRDS correctly
...5.0654 301.8162 335.6266
> 308.3757 319.6965 1915.706 100
>
>It looks like the max value is an outlier.
>
>So I tried:
>SECOND TEST:
>> sapply(1:10, function(x) system.time(n <- readRDS('file.rds'))[3])
>elapsed elapsed elapsed
>elapsed elapsed elapsed
>elapsed elapsed elapsed
>elapsed
>10.50 0.11 0.11
>0.11...
2017 Jul 11
1
Gluster native mount is really slow compared to nfs
...?permute host directories? : N
? ? ? ? ? ? ? ? remote program directory : /root/smallfile-master
? ? ? ? ? ? ? ?network thread sync. dir. : /var/www/test/network_shared
starting all threads by creating starting gate file /var/www/test/network_shared/starting_gate.tmp
host = 192.168.140.41,thr = 00,elapsed = 1.232004,files = 5000,records = 0,status = ok
host = 192.168.140.41,thr = 01,elapsed = 1.148738,files = 5000,records = 0,status = ok
host = 192.168.140.41,thr = 02,elapsed = 1.130913,files = 5000,records = 0,status = ok
host = 192.168.140.41,thr = 03,elapsed = 1.183088,files = 5000,records = 0,s...
2002 Jul 22
1
Antwort: Re: Problem with SSHD-Daemon (OpenSSH)
Hi Ben,
here is the output from sshd -d -d -d:
mvs2:sygm:/usr/local/sbin:#./sshd -d -d -d
debug3: Reading output from 'ls -alni /var/log'
debug3: Time elapsed: 459 msec
debug2: Command 'ls -alni /var/log' timed out
debug3: Got 0.00 bytes of entropy from 'ls -alni /var/log'
debug3: Reading output from 'ls -alni /var/adm'
debug3: Time elapsed: 143 msec
debug2: Command 'ls -alni /var/adm' timed out
debug3: Got 0.00 bytes of...
2009 Nov 19
1
Performance of 'by' and 'ddply' on a large data frame
...e=T),
x2=sample(seq.Date(Sys.Date() - 356*3,Sys.Date(), by="day"), 10^p, replace=T),
y1=sample(1:100, 10^p, replace=T))
}
> testby <- function(p) {
df <- randomdf(p)
system.time(by(df, df$x1, function(dfi) { min(dfi$x2) }))
}
> lapply(c(1,2,3,4,5), testby)
[[1]]
? user ?system elapsed
?0.006 ? 0.000 ? 0.006
[[2]]
? user ?system elapsed
?0.024 ? 0.000 ? 0.025
[[3]]
? user ?system elapsed
?0.233 ? 0.000 ? 0.234
[[4]]
? user ?system elapsed
?1.996 ? 0.026 ? 2.022
[[5]]
? user ?system elapsed
11.030 ? 0.000 ?11.032
Strangely enough, not sure why this is, the result of by with...
2016 Oct 26
5
BUG?: On Linux setTimeLimit() fails to propagate timeout error when it occurs (works on Windows)
setTimeLimit(elapsed=1) causes a timeout error whenever a call takes
more than one second. For instance, this is how it works on Windows
(R 3.3.1):
> setTimeLimit(elapsed=1)
> Sys.sleep(10); message("done")
Error in Sys.sleep(10) : reached elapsed time limit
Also, the error propagates immediately an...
2009 Sep 09
10
dtrace overhead and proper measuring technique
I''m trying to time a function within Firefoxwith a pid$target probe
[2]. e.g
dtrace -Zqw -x dynvarsize=64m -x evaltime=preinit -p 13954 -s menu-
construct.d -s sigcont.d
elapsed: 12.7942481ms
cpu : 7.7911194ms
count : 40 times
I''m also measuring Firefox startup time by running it arguments like
this:
... file:///Users/joelr/work/mozilla/startup/startup.html#`python -c
''import time; print int(time.time() * 1000);''`
startup.html [3] pri...
2002 Jul 22
0
Antwort: Re: Problem with SSHD-Daemon (OpenSSH)
...Openssh-unix-dev at mindrot.org
Thema: Antwort: Re: Problem with SSHD-Daemon (OpenSSH) (Document link:
Michael Galonska)
Hi Ben,
here is the output from sshd -d -d -d:
mvs2:sygm:/usr/local/sbin:#./sshd -d -d -d
debug3: Reading output from 'ls -alni /var/log'
debug3: Time elapsed: 459 msec
debug2: Command 'ls -alni /var/log' timed out
debug3: Got 0.00 bytes of entropy from 'ls -alni /var/log'
debug3: Reading output from 'ls -alni /var/adm'
debug3: Time elapsed: 143 msec
debug2: Command 'ls -alni /var/adm' timed out
debug3: Got 0.00 bytes of...