Updated

A brash mayor known for crude sex jokes and a pledge to kill suspected criminals looked set to become the next president of the Philippines with a commanding lead in an unofficial vote count in Monday's elections, while the son of a late dictator led in the vice presidential race.

Rodrigo Duterte, the mayor of southern Davao city, had secured more than 12.2 million votes, according to a count of partial results transmitted electronically from voting centers nationwide. The closest of his four rivals, former Interior Secretary Mar Roxas, had 7.0 million votes. Final results are expected Tuesday.

A victory by Duterte would amount to a massive earthquake in the country's politics. Starting as an outsider, Duterte built his popularity with radical pledges to eliminate poverty and end corruption and crime. He has a reputation for fighting crime as mayor of Davao for 22 years, but has been accused of ordering extrajudicial killings to achieve that.

On the last day of campaigning Saturday, he made clear he intends to continue his hard-line approach.

"All of you who are into drugs, you sons of bitches, I will really kill you," Duterte, 71, a former prosecutor, told a rally. "I have no patience, I have no middle ground, either you kill me or I will kill you idiots."

Statements such as that have won him the nickname "Duterte Harry," a reference to the Clint Eastwood movie character "Dirty Harry" who had little regard for rules.

Duterte has also been compared to U.S. Republican presumptive nominee Donald Trump.

He is known for crude jokes about sex and rape, talking often about his Viagra-fueled sexual escapades, and for making undiplomatic remarks about Australia, the United States and China, all key players in the country's politics. He has threatened to dismiss the Philippine Congress and form a revolutionary government if he is confronted with uncooperative legislators.

Outgoing President Benigno Aquino III led efforts to discourage Filipinos from voting for Duterte over fears the mayor may endanger the country's hard-fought democracy and squander the economic gains of the last six years, when the Philippine economy grew at an average of 6.2 percent, one of the best rates in Asia.

But on election day, with opinion polls giving him the best chance to win, Duterte reached out to his opponents. "Let us be friends," he said at a news conference after voting in Davao. "Let us begin the process of healing."

Among the other presidential candidates, Sen. Grace Poe had 6.9 million votes and Vice President Jejomar Binay had 4.1 million, according to the partial unofficial results. Poe conceded defeat early Tuesday.

Sen. Ferdinand Marcos Jr, the son of former dictator Ferdinand Marcos, led with 11.1 million votes in an unofficial count of the vice presidential race, followed by Rep. Leni Robredo, who had 10.4 million.

Vice presidents are elected separately from presidents in the Philippines.

"I am feeling that by all indications we should be successful today," Marcos said in a statement.

Aquino, whose parents were democracy champions who helped topple the senior Marcos, also campaigned against Marcos Jr., who has never clearly apologized for economic plunder and widespread human rights abuses that occurred under his father.

Aquino warned that Duterte could be a dictator in the making and urged voters not to support him. Filipinos have been hypersensitive to potential threats to democracy since they rose in the 1986 "people power" revolt that ousted the older Marcos.

Aside from the presidential and vice presidential races, more than 45,000 candidates contested 18,000 national, congressional and local positions in elections that have traditionally been tainted by violence and accusations of cheating.

About 55 million Filipinos registered to vote at 36,000 polling places across the archipelago of more than 7,100 islands, including in a small fishing village in a Philippine-occupied island in the disputed South China Sea.

Weary of poverty, poor public services, crime, corruption and insurgencies in the hinterlands, voters in the nation of 100 million people looked for radical change at the top.

Duterte tapped into that discontent. He pledged to end crime within six to 12 months and offered a plan to sail to disputed artificial islands newly created by China in the South China Sea and plant the Philippine flag there. The other candidates stuck to less audacious reforms.

Duterte's opponents have all accused him of making remarks that threaten the rule of law and democracy.

Market analysts are predicting that a Duterte win would weaken the Philippine peso given his uncertain economic platform.

The jitters have affected the Philippine stock market, which fell Friday -- the last day of trading before Monday's election holiday -- for the 10th time in 11 days.

"The market is obviously emotional and the stronger emotion is usually fear rather than hope," said Jose Vistan, research head at AB Capital Securities Inc. "A big chunk of the reason why we're behaving the way we are is obviously because of the elections."

"Duterte is completely out of the system, he's out of the box," said political science Prof. Richard Heydarian of De La Salle University in Manila, adding that in the mayor's portrayal of social problems, "there is a gap between the rhetoric and reality but it's working, it's creating panic among a lot of people and rallying them behind Duterte."