BENTONVILLE, Ark. - In its latest effort to compete with online giant Amazon, Walmart is testing a delivery service using its own store employees, who will deliver packages ordered online while driving home from their regular work shifts.

The “associate delivery” program would use Walmart's 4,700 U.S. stores and roughly 1.2 million employees to speed delivery and cut costs, the company said Thursday. The announcement came just a day before the company's annual meeting.

The world's largest retailer says workers can choose to participate and would be paid. The service is being tested at two stores in New Jersey and one in Arkansas.

Walmart has stores within 10 miles of 90 per cent of the U.S. population, the company says.

“Now imagine all the routes our associates drive to and from work and the houses they pass along the way,” Marc Lore, CEO of Walmart's U.S. online operations, wrote on the company website.

Ravi Jariwala, a Walmart spokesman, said all those employees driving home represent a “very dense web” of potential delivery locations for the company.

Employees who want to participate will be able to use an app to specify how many packages they are willing to deliver, Jariwala said, as well as the weight and size limits on the packages. Jariwala would not provide details about how workers would be paid, but said the company would comply with all federal and state minimum wage and overtime laws.

“This is completely an opt-in program,” he said Thursday. “This is not something they are required to do.”

So far, employees “love having the option to earn more cash while doing something that's already part of their daily routine,” Lore wrote.

Some critics of Walmart's labour practices questioned how voluntary such a program will be.

“When so many workers are paid so little that they need government assistance to make ends meet, it becomes a necessity, not a choice, to do what they can to earn more,” said Randy Parraz, director of Making Change at Walmart, a group funded by the United Food and Commercial Workers.

The move could result in significant cost savings, though the company didn't provide estimates of how much. Still, the final delivery step to a customer's home - what the industry refers to as the “last mile” - “makes up the lion's share of fulfilment costs,” Jariwala said.

The move is the latest step in Walmart's campaign to counter Amazon's online dominance. Shoppers on Walmart.com can already choose to pick up items at a nearby store for a lower price. Walmart has also revamped its shipping program and offers free, two-day shipping for online orders of its most popular items with a minimum purchase of $35.

In its tests so far, Walmart says “many” packages are arriving at customers' homes just a day after an order has been placed.

Participating employees will have to undergo background checks and a check on their driving records, Jariwala said.

Faster shipping has become a key area of competition as online retail continues to grow at a double-digit pace, while traditional brick-and-mortar stores struggle with falling sales.

Members of Amazon's $99-a-year Prime service in thousands of areas can receive orders the same day or the next, depending on the item and location. And in about 30 cities, Prime Now members can get some items in an hour or two.

Walmart has previously tested delivery services using Uber drivers. Jariwala said that test is still going on.

But Lore noted that the employee delivery service would save a step compared with third-party services that require a driver to travel to a store to pick up a good, then deliver it, then return home. Walmart workers would simply travel from the store they already work at to make the delivery.