ryArray.set(queryBytes, queryPtr);
                }
                
                // Call search function
                const resultPtr = searchFunction(queryPtr, 10);
                
                // Free query memory if we allocated it
                if (wasmModule.exports.__wbindgen_free && queryPtr > 1024) {
                    wasmModule.exports.__wbindgen_free(queryPtr, query.length + 1);
                }
                
                const endTime = performance.now();
                co