Multi-armed Bandit on System-on-Chip: Go Frequentist or Bayesian?