Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Using a set of tests originally devised by Esmé Cowles I modified them slightly and added a couple of new tests.  The latest versions can be found here : test scripts.   The test results, in most cases, reflect that fastest retrieval speeds I was able to get. Initial retrieval times tended to be slower in most cases due to the fact that modeshape needs to warm up the cache.  The scripts now make an initial GET call to warm the cache before timing a second call to the same resource.

...

  1.  Install postgresql 
  2. Install mysql-server 
  3. Build  the fcrepo4 project from the specified commit. 
  4. Run fcrepo-webapp using mvn clean jetty:run and the appropriate MAVEN_OPTS such as fcrepo.modeshape.configuration, fcrepo.mysql.username, fcrepo.mysql.password,  fcrepo.postgres.username, fcrepo.postgres.password.
  5. git clone https://github.com/dbernsteinfcrepo4-labs/fcrepo-performance-test-testsscripts.git
  6. For each test, I ran the scripts with 1000 and 10000 items. 

Instance Definition

  1. AWS / Ubuntu 16 / Oracle Java 8 / m3.medium  (3.7 GiB memory  / Intel Xeon E5-2670 (Sandy Bridge) Processor @  2.6 GHz x 1)
  2. Lenovo / Ubuntu 16.10 / Java HotSpot 1.8.0_111 / 11.6 GiB memory / Intel i7-4600U CPU @ 2.10GHz x 4
  3. AWS / Ubuntu 16 / Oracle Java 8 / m3.xlarge (14 GiB memory  / Intel Xeon E5-2670 (Sandy Bridge) Processor @  2.6 GHz x 4)
  4. AWS / Ubuntu 16 / Oracle Java 8 / c4.xlarge (7.5 GiB memory  / Intel Xeon E5-2666 v3 (Haswell)  @  2.9 GHz x 4)
  5. AWS / Ubuntu 16 / Oracle Java 8 / c4.2xlarge (15 GiB memory  /Intel Xeon E5-2666 v3 (Haswell) @  2.9 GHz x 8)
  6. AWS / Ubuntu 16 / Oracle Java 8 / c4.4xlarge (30 GiB memory  /Intel Xeon E5-2666 v3 (Haswell) @  2.9 GHz x 16)


n-children.sh

FCREPO Version
RepoBranch
Commit
Environment
Modeshape Config

# of relations

Test Duration

(seconds)

Tester

4.8.0-SNAPSHOTdbernstein
b60d4e5file-simple100005.222
4.8.0-SNAPSHOTdbernstein
daa11f35file-simple100005.567
4.8.0-SNAPSHOTdbernstein
b60d4e6file-simple100004.859
4.8.0-SNAPSHOTdbernstein
daa11f36file-simple100004.841

n-members.sh

...

Number of relations: 1000

FCREPO VersionRepobranchCommitmodeshape configEnvironment# of relations

Test Duration

(seconds)

TesterNotes4.8.0-SNAPSHOTfcrepo4master2df32file-simple110006.570
FCREPO VersionRepoBranchCommitmodeshapeEnvironment

# of relations

Test Duration

(seconds)

Tester
4.8.0-SNAPSHOTfcrepo4master2df32file-simple110001.408
4.7.1fcrepo4master4.7.1546f5a5file-simple210001.45
4.8.0-SNAPSHOTfcrepo4master2df32file-simple110,00028.583
4.7.1fcrepo4master4.7.1546f5a5file-simple210,00024.79
4.8.0-SNAPSHOTfcrepo4masterb60d4efile-simple310,0009.58
4.8.0-SNAPSHOTdbernstein
fcrepo-2105-v4-parallelization
daa11f3file-simple310,00012.16Danny Bernsteinparallel streams enabled.
4.8.0-SNAPSHOTdbernsteinfcrepo-2105-v4-parallelizationdaa11f3file-simple410,0009.71Danny Bernsteinparallel streams enabled.
4.8.0-SNAPSHOTdbernsteinfcrepo-2105-v4-parallelizationdaa11f3file-simple510,0008.51Danny Bernsteinparallel streams enabled.
4.8.0-SNAPSHOT

b60d4efile-simple510,0008.815
4.8.0-SNAPSHOTdbernsteinfcrepo-2105-v4-parallelizationdaa11f3file-simple610,0008.29Danny Bernsteinparallel streams enabled.
4.8.0-SNAPSHOT

b60d4efile-simple610,0008.661
4.8.0-SNAPSHOTbbrananfcrepo-2402f0a51ejdbc-postgresql110001.543
4.8.0-SNAPSHOTbbrananfcrepo-2402f0a51ejdbc-postgresql11000010,00061.381perhaps postgres needs caching configured?
4.8.0-SNAPSHOTdbernsteinfcrepo-2105-v4-parallelizationdaa11f3jdbc-postgresql310000.592
4.8.0-SNAPSHOTdbernsteinfcrepo-2105-v4-parallelizationdaa11f3jdbc-postgresql31000010,00039.671
4.8.0-SNAPSHOTbbrananfcrepo-2402f0a51ejdbc-postgresql310004.435
4.8.0-SNAPSHOTbbrananfcrepo-2402f0a51ejdbc-postgresql31000010,00039.486
4.8.0-SNAPSHOTdbernsteinfcrepo-2105-large-cachef453ajdbc-postgresql310000.5611 million item cache
4.8.0-SNAPSHOTdbernsteinfcrepo-2105-large-cachef453ajdbc-postgresql31000010,0005.3341 million item cache
4.8.0-SNAPSHOTdbernsteinfcrepo-2105-large-cache5138b4jdbc-postgresql310000.6331 million item cache + parallelized
4.8.0-SNAPSHOTdbernsteinfcrepo-2105-large-cache5138b4jdbc-postgresql31000010,0005.3981 million item cache + parallelized
4.8.0-SNAPSHOTdbernsteinfcrepo-2105-large-cache5138b4mysql-postgresql310000.8201 million item cache + parallelized
4.8.0-SNAPSHOTdbernsteinfcrepo-2105-large-cache5138b4mysql-postgresql31000010,0007.7261 million item cache + parallelized
4.8.0-SNAPSHOTdbernsteinfcrepo-240275dd1jdbc-postgresql-s3310000.7011 million item cache + parallelized
4.8.0-SNAPSHOTdbernsteinfcrepo-240275dd1jdbc-postgresql-s331000010,0005.4851 million item cache + parallelized
4.8.0-SNAPSHOTdbernsteinfcrepo-240275dd1jdbc-mysql-s3310000.8641 million item cache + parallelized
4.8.0-SNAPSHOTdbernsteinfcrepo-240275dd1jdbc-mysql-s331000010,0007.3951 million item cache + parallelized

...

4.7.1fcrepo44.7.1546f5a5file-simple210,00013.07cacheSize = 50,000
4.7.1fcrepo4
4.7.1
fcrepo4master
546f5a5file-simple2
1000
10,000
2
10.
80
30cacheSize = 1,000,000


n-memberof.sh

Number of relations: 1000

Andrew Woods0224790parallel streams enabled.
FCREPO VersionRepobranchCommitmodeshape configEnvironment# of relations

Test Duration

(seconds)

TesterNotes4.8.0-SNAPSHOTfcrepo4master2df32file-simple110,00086.0004.7.1fcrepo4master546f5a5file-simple210,00057.35
4.8.0-SNAPSHOTfcrepo4masterb60d4e2df32file-simple3110,0001000306.570Unlike the n-member example, results begin streaming right away - so the response begins streaming within 2 seconds.
4.7.1fcrepo44.7.1546f5a5file-simple210002.80
4.8.0-SNAPSHOTdbernsteinfcrepo-2105-v4-parallelizationfcrepo4master2df32daa11f3file-simple3110,0002986.975000parallel streams enabled.
4.7.1fcrepo44.87.0-SNAPSHOTdbernsteinfcrepo-2105-v4-parallelizationdaa11f31546f5a5file-simple4210,00057.Danny Bernstein35
4.8.0-SNAPSHOTdbernsteinfcrepo-2105-v4-parallelizationfcrepo4masterb60d4edaa11f3file-simple5310,0002030.99202parallel streams enabledUnlike the n-member example, results begin streaming right away - so the response begins streaming within 2 seconds.
4.8.0-SNAPSHOTfcrepo4masterdbernsteinfcrepo-2105-v4-parallelizationdaa11f3b60d4efile-simple5310,0002629.357975Danny Bernsteinparallel streams enabled.
44.8.0-SNAPSHOTdbernsteinfcrepo-2105-v4-parallelizationdaa11f3file-simple6410,0002024.337790Danny Bernsteinparallel streams enabled.
4.8.0-SNAPSHOTfcrepo4masterdbernsteinfcrepo-2105-v4-parallelizationdaa11f3b60d4efile-simple6510,0002520.782992Danny Bernsteinparallel streams enabled.
4.8.0-SNAPSHOTbbrananfcrepo4fcrepo-2402masterf0a51eb60d4ejdbcfile-postgresqlsimple15100010,0001126.414357
4.8.0-SNAPSHOTbbranandbernsteinfcrepo-2402f0a51ejdbc-postgresql1100002105-v4-parallelizationdaa11f3file-simple610,00020.337194Danny Bernsteinparallel streams enabled.
4.8.0-SNAPSHOTdbernsteincrepo-2105-v4-parallelizationdaa11f3jdbc-postgresql31000fcrepo4masterb60d4efile-simple610,00025.7823.961parallel streams enabled.
4.8.0-SNAPSHOTdbernsteinbbranancrepo-2105-v4-parallelizationfcrepo-2402f0a51edaa11f3jdbc-postgresql311000010005311.452414parallel streams enabled.


4.8.0-SNAPSHOTbbrananfcrepo-2402f0a51ejdbc-postgresql31100010,00019410.833
4.8.0-SNAPSHOTbbrananfcrepo-2402dbernsteincrepo-2105-v4-parallelizationdaa11f3f0a51ejdbc-postgresql31000010001093.530961parallel streams enabled.
4.8.0-SNAPSHOTdbernsteinfcrepocrepo-2105-largev4-cacheparallelizationf453adaa11f3jdbc-postgresql31000010,0002253.9634521 million item cacheparallel streams enabled.
4.8.0-SNAPSHOTdbernsteinbbrananfcrepo-2105-v4-parallelization2402f0a51e5138b4jdbc-postgresql31000010001110.5598331 million item cache + parallelized
4.8.0-SNAPSHOTdbernsteinbbrananfcrepo-2105-v4-parallelization5138b42402f0a51ejdbcmysql-postgresql3100010,0002109.3375301 million item cache + parallelized
4.8.0-SNAPSHOTdbernsteinfcrepo-2105-v4large-parallelizationcache5138b4f453amysqljdbc-postgresql3100001422.9989631 million item cache + parallelized.
4.8.0-SNAPSHOTdbernsteinfcrepo-2105-v4-2402parallelization75dd15138b4jdbc-postgresql-s33100010,000111.8835591 million item cache + parallelized
4.8.0-SNAPSHOTdbernsteinfcrepo-2105-v4-2402parallelization75dd15138b4jdbcmysql-postgresql-s331000100002.3371 million item cache + parallelized
4.8.0-SNAPSHOTdbernsteinfcrepo-240275dd12105-v4-parallelization5138b4jdbc-mysql-s3postgresql3100010,000214.3749981 million item cache + parallelized
4.8.0-SNAPSHOTdbernsteinfcrepo-240275dd1jdbc-mysqlpostgresql-s33100001000141.9568831 million item cache + parallelized

n-uris.sh

4.8.0-SNAPSHOTdbernsteinfcrepo-240275dd1jdbc-postgresql-s3310,000
1 million item cache + parallelized
FCREPO VersionCommitEnvironment# of relations

Test Duration

(seconds)

 
4.8.0-SNAPSHOT
2df32
dbernsteinfcrepo-240275dd1jdbc-mysql-s33
1
1000
0
2.
039
3741 million item cache + parallelized
4.
7
8.
1
0-SNAPSHOT
546f5a5
dbernstein
24.8.0-SNAPSHOT2df321
fcrepo-2402
10000.14
75dd1jdbc-mysql-s33
10,000
0
14.
063
9561 million item cache + parallelized
4.7.1fcrepo44.7.1546f5a5file-simple210,000
0
31.
17
91

...

cacheSize = 50,000
4.7.1fcrepo44.7.1546f5a5file-simple210,00023.07cacheSize = 1,000,000

n-uris.sh

 1000
FCREPO VersionCommitEnvironment# of relations

Test Duration

(seconds)

Tester
4.8.0-SNAPSHOT2df32110000.060039
4.7.1546f5a5210000.08914
4.8.0-SNAPSHOT2df32110,0000.119063
4.7.1546f5a5210,0000.28117
      

n-binaries.sh  (time for loading binary files)

n-properties.sh

FCREPO VersionCommitEnvironment# of relations

Test Duration

(seconds)

Tester
4.8.0-SNAPSHOT2df321 10000.060
4.7.1546f5a5210000.089
4.8.0-SNAPSHOT2df32110,0000.119
4.7.1546f5a5210,0000.281







n-binaries.sh  (time for loading binary files)

repobranchCommitEnvironmentModeshape Config# of binariessize in KB

Test Duration

(seconds)

Tester
https://github.com/bbranan/fcrepo4.gitfcrepo-2402f0a51e1file-s3 1000100000:06:02
https://github.com/bbranan/fcrepo4.git fcrepo-2402f0a51e1file-simple1000100000:02:16
repobranchCommitEnvironmentModeshape Config# of binariessize in KB

Test Duration

(seconds)

Tester

https://github.com/bbranan/fcrepo4.gitfcrepo-2402f0a51e1
file
jdbc-
s3
postgresql
 1000
1000100000:
06
02:
02
13
https://github.com/bbranan/fcrepo4.gitfcrepo-2402f0a51e
1
3
file
jdbc-postgresql-
simple
s31000100000:
02
06:
16
36
https://github.com/bbranan/fcrepo4.gitfcrepo-2402f0a51e
1
3jdbc-mysql-
postgresql
s31000100000:
02
06:
13
32



Conclusions