[
https://issues.apache.org/jira/browse/S2GRAPH-99?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15445969#comment-15445969
]
DOYUNG YOON commented on S2GRAPH-99:
------------------------------------
If I changed `val testLimit = 10000` from 500000, SamplingBenchmarkSpec
finished as follow.
{noformat}
==================================================
Random Array Sampling: took 300 ms
==================================================
==================================================
Shuffle Sampling: took 946 ms
==================================================
==================================================
RNG Sampling: took 606 ms
==================================================
[info] SamplingBenchmarkSpec
[info]
[info] sample should
[info] + sample benchmark
[info]
[info] Total for specification SamplingBenchmarkSpec
[info] Finished in 3 seconds, 891 ms
[info] 1 example, 0 failure, 0 error
{noformat}
if we compare relative performance based on first method(Random Array
Sampling), then we can still see that `Random Array Sampling` method is about 3
times faster than `Shuffle Sampling` while we reduce test time from 2min to 3
secs.
Please give any feedback on this.
> Reduce number of test run on test cases on
> org.apache.s2graph.rest.play.benchmark
> ---------------------------------------------------------------------------------
>
> Key: S2GRAPH-99
> URL: https://issues.apache.org/jira/browse/S2GRAPH-99
> Project: S2Graph
> Issue Type: Sub-task
> Affects Versions: 0.1.0
> Reporter: DOYUNG YOON
> Assignee: DOYUNG YOON
> Fix For: 0.1.0
>
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> Currently SamplingBenchmarkSpec on s2rest_play project test different
> sampling methods on size 1000 edges averaging 500000 times. Since we are more
> interested on relative performance between different sampling method rather
> than absolute peformance, I am suggesting to reduce number of test run from
> 500000 to 10000(1/50) to make test run faster.
> {noformat}
> ==================================================
> Random Array Sampling: took 8696 ms
> ==================================================
> ==================================================
> Shuffle Sampling: took 30263 ms
> ==================================================
> ==================================================
> RNG Sampling: took 21161 ms
> ==================================================
> [info] SamplingBenchmarkSpec
> [info]
> [info] sample should
> [info] + sample benchmark
> [info]
> [info] Total for specification SamplingBenchmarkSpec
> [info] Finished in 2 minutes 5 seconds, 499 ms
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)