MCPcopy Index your code
hub / github.com/parse-community/parse-server / benchmarkUserSignup

Function benchmarkUserSignup

benchmark/performance.js:442–457  ·  view source on GitHub ↗

* Benchmark: User Signup

(name)

Source from the content-addressed store, hash-verified

440 * Benchmark: User Signup
441 */
442async function benchmarkUserSignup(name) {
443 let counter = 0;
444
445 return measureOperation({
446 name,
447 iterations: 500,
448 operation: async () => {
449 counter++;
450 const user = new Parse.User();
451 user.set('username', `benchmark_user_${Date.now()}_${counter}`);
452 user.set('password', 'benchmark_password');
453 user.set('email', `benchmark${counter}@example.com`);
454 await user.signUp();
455 },
456 });
457}
458
459/**
460 * Benchmark: User Login

Callers

nothing calls this directly

Calls 1

measureOperationFunction · 0.85

Tested by

no test coverage detected