bbb

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
aa
function auth() {
	const returnUrl = `https://www.baidu.com?returnUri={encodeURIComponent('/back')}`
	return {returnUrl}
}

var ret = auth();
ret.returnUrl
ret.returnUrl
ret.returnUrl
ready
bb
function getUrl() {
	return `https://www.baidu.com?returnUri={encodeURIComponent('/back')}`
}

function auth() {
	return {
		get returnUrl() {
			return getUrl();
	}
	}
}

var ret = auth();
ret.returnUrl
ret.returnUrl
ret.returnUrl
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.