I'm not a physicist but as far as I know a nuclear explosion releases its energy much more quickly than e.g. TNT, so just releasing the same number of joules wouldn't exactly duplicate the test unless you were able to release them in the same number of nanoseconds.