Image source: Google. 

Two of the world's biggest technology companies, Alphabet (GOOG 1.43%) (GOOGL 1.42%) and China-based Baidu (BIDU 2.30%) have both committed years of research and millions of dollars in funding to their own driverless car technologies. 

Both are betting that they can grab a slice of the growing driverless car market, which will be worth $42 billion by 2025 and comprise 10% of all vehicles sold by 2035.

Both companies are making huge strides, but only one of them is inching ahead of the other. Here's how the two companies stack up so far.

Alphabet's slow and steady approach

Alphabet is building out its driverless car plans under its Google division, which has been working on autonomous cars for years. The company's driverless vehicles have already driven 1.6 million physical miles over the past seven years, and virtual simulations in Google's data centers allow its driverless car software to log 3 million virtual miles every day

Google made one of its biggest moves in driverless cars this year when it said it would work with Fiat Chrysler on autonomous vehicles. It's the first official partnership Google's made with an automaker, and it'll bring the company's driverless car technology into 100 Chrysler Pacificas.

Google is still, of course, testing its driverless technology out on its own prototype vehicles, as well. 

Aside from its partnerships and software, the company has aggressively lobbied the U.S. government to expand federal laws to allow more driverless car testing

Baidu's aggressive driverless goals

If there was ever another tech giant to take on Alphabet in the driverless car space, it's Baidu. Just like Google, Baidu has gone before Congress to advocate for looser driverless car rules in the U.S. and is already testing its technology on American and Chinese roads.

But Baidu's driverless car plans are a tad more ambitious than Google's. The company already has driverless vans and buses driving around the Chinese city of Wuhu. It's a five-year test of the company's driverless systems in the real world.

The initial tests won't involve passengers and will be regulated to small areas around the city but will eventually encompass larger areas and include riders. That type of testing is something Google can't currently match because of U.S. laws. 

An article in The Guardian noted last year that the Chinese government has the ability to "rapidly mandate the kind of wholesale changes that would be required to unleash self-driving cars."

Baidu's main goal is to bring self-driving, mass transportation vehicles to Chinese cities by 2018. Whether it'll reach that goal or not is still unclear. But Baidu has an advantage over Google when it comes to driverless car laws: The Chinese government is much more willing to allow aggressive testing on its roads than the U.S. government is (whether that's necessarily safe or not is another thing). 

And last, but certainly not least, Baidu has a lot of driverless car patents that it could eventually license to other companies. That could eventually give Baidu the opportunity to bring in revenue from patent licensing, though the company has not yet specified how or if it will do this. 

This is a tough call

There are two things to remember here: Neither one of these companies is betting the farm on driverless car technology, and neither has clearly stated how it will make money from its technology. 

That's not to say there isn't a massive opportunity for the companies, though. Morgan Stanley's Katy Huberty estimates that the shared mobility market (people borrowing or renting drivleress cars) could be worth $2.6 trillion by 2030. And both of these companies could easily be in a position to license or sell their driverless car technology to automakers by that time -- and grab a large part of that market. 

At this point, I'd have to give the slight advantage to Baidu. The Chinese government appears to be pushing driverless car technology along faster than the U.S., and that's giving Baidu more opportunities to make self-driving vehicles a reality. 

The U.S. is expected to release more driverless vehicle standards later this month, which will give us more insight into how quickly driverless technology could spread here. But it's clear that China is already embracing self-driving technology much faster -- and Baidu is benefiting.