inst/benchmarks/time_call.R

time_group(".Call from R")

time_that("Redefining .Call does not have much overhead #1", replications=10,
          init = { library(igraph) ; g <- graph.ring(100) },
          { for (i in 1:20000) {
            .Call(R_igraph_vcount, g)
          }  })

time_that("Redefining .Call does not have much overhead #1", replications=10,
          init = { library(igraph) ; g <- graph.ring(100) },
          { for (i in 1:20000) {
            igraph:::.Call(R_igraph_vcount, g)
          }  })

Try the igraph package in your browser

Any scripts or data that you put into this service are public.

igraph documentation built on Aug. 10, 2023, 9:08 a.m.