I assume you want to get a measure of "similarity" of the signal, in order to get a score of similarity between the measure and the reference.
For measurements where there is no phase shift is not uncommon to use RMSE, MSE or MAE.
MAE is the simplest of them all called "Mean Absolute Error":
$$MAE = \frac{\displaystyle\sum_{i=0}^n \left| y_{\tt ref}[n] - y_{\tt meas}[n]\right|}{n}$$
MSE and RMSE are: "Mean Square Error" and "Root Mean Square error":
$$ MSE = \frac{\displaystyle\sum_{i=0}^n (y_{\tt ref}[n] - y_{\tt meas}[n])^2 }{n} $$
$$ RMSE = \sqrt{\frac{\displaystyle\sum_{i=0}^n (y_{\tt ref}[n] - y_{\tt meas}[n])^2 }{n}} $$
$$ RMSE = \sqrt{ MSE } $$
This measurements are an indicator of how off is your measurement from the theoretic value in average. And they work well as long as there is not phase shift. For example in image restoration this measurements are used to validate denoising algorithms, where the place of the pixel is fixed (meaning the phase is not shifted).
This error measurements are commonly used as a loss function in neural networks also. Maybe you can look an example of some of them here.
Last but not least: if you had phase shift, you should be looking for other methods, for example using the DTW(Dynamic Time Warping) distance, or more "distance along curves measuring methods" like Hausdorff distance or Fréchet distance.