ERDDAP / erddap

ERDDAP is a scientific data server that gives users a simple, consistent way to download subsets of gridded and tabular scientific datasets in common file formats and make graphs and maps. ERDDAP is a Free and Open Source (Apache and Apache-like) Java Servlet from NOAA NMFS SWFSC Environmental Research Division (ERD).
Creative Commons Zero v1.0 Universal
78 stars 57 forks source link

N thread optimizations #74

Closed ChrisPJohn closed 2 years ago

ChrisPJohn commented 2 years ago

Before changes: EDDGridFromNcFiles.testNThreads finished. nThreads=5 time=2220ms nThreads=4 time=2161ms nThreads=3 time=2155ms nThreads=2 time=2109ms nThreads=1 time=2100ms nThreads=1 time=2128ms nThreads=2 time=2112ms nThreads=3 time=2109ms nThreads=4 time=2127ms nThreads=5 time=2130ms

with changes EDDGridFromNcFiles.testNThreads finished. nThreads=5 time=716ms nThreads=4 time=516ms nThreads=3 time=671ms nThreads=2 time=959ms nThreads=1 time=1891ms nThreads=1 time=1861ms nThreads=2 time=954ms nThreads=3 time=657ms nThreads=4 time=513ms nThreads=5 time=435ms

Note that these changes don't effect the timings for EDDGridFromNcFiles.testBigRequestSpeed because that has 1 file per chunk.