This repository contains code for conducting benchmark timing on a server. It is designed to facilitate performance evaluation of database operations.
- R and RStudio are required to run the code.
- Ensure that you have access to the database and necessary credentials to connect.
- Download the Repository
Download this repository:- Either download as a ZIP file using
Code -> Download ZIP, then unzip. - Or, use GitHub Desktop to clone the repository.
- Either download as a ZIP file using
- Open the R Project
- Navigate to the
Benchmarkfolder and open the project fileBenchmark.Rprojin RStudio. - You should see the project name in the top-right corner of your RStudio session.
- Navigate to the
- Run the Analysis Code
- Open the
CodeToRun.Rfile. This is the main script you’ll use. - Follow the instructions within the file to add your database-specific information.
- Run the code as directed. This will generate a
Resultsfolder containing the outputs, including a ZIP file with the results for sharing.
- Open the
- OPTIONAL: Visualise Results in Shiny
- Navigate to the
shinyfolder and open the project fileshiny.Rprojin RStudio. - You should see the project name in the top-right corner of your RStudio session.
- Copy the generated result files (in .csv format) into the
Datafolder located within theshinyfolder. - Open the
global.Rscript in theshinyfolder. - Click the Run App button in RStudio to launch the local Shiny app for interactive exploration of the results.
- Navigate to the
The overall results of the benchmark, run by all the data partners involved, will be published in the following Shiny app: https://dpa-pde-oxford.shinyapps.io/benchmark-hdruk/